aboutsummaryrefslogtreecommitdiffstats
path: root/noice.c
diff options
context:
space:
mode:
Diffstat (limited to 'noice.c')
-rw-r--r--noice.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/noice.c b/noice.c
index bd35eaa..8fe7f98 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);