From: lostd Date: Tue, 27 Jan 2015 07:55:07 +0000 (+0200) Subject: Empty filter resets filter to the default X-Git-Tag: v1.0~92^2~92 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=48e3305be834bf0877a16ec5e855e66fb1787bd7;p=nnn.git Empty filter resets filter to the default --- 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);