noice

small file browser
git clone git://git.2f30.org/noice.git
Log | Files | Refs | README | LICENSE

commit 48e3305be834bf0877a16ec5e855e66fb1787bd7
parent 9679e132d48dc6e39e3e4e0798aed75696784ba3
Author: lostd <lostd@2f30.org>
Date:   Tue Jan 27 09:55:07 +0200

Empty filter resets filter to the default

Diffstat:
noice.c | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git 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);