From 48e3305be834bf0877a16ec5e855e66fb1787bd7 Mon Sep 17 00:00:00 2001 From: lostd Date: Tue, 27 Jan 2015 09:55:07 +0200 Subject: [PATCH] Empty filter resets filter to the default --- noice.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/noice.c b/noice.c index bd35eaa6..8fe7f98d 100644 --- a/noice.c +++ b/noice.c @@ -664,10 +664,8 @@ nochange: /* Read filter */ printprompt("filter: "); tmp = readln(); - if (tmp == NULL) { - clearprompt(); - goto nochange; - } + if (tmp == NULL) + tmp = xstrdup(ifilter); r = setfilter(&re, tmp); if (r != 0) { free(tmp);