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);