Empty filter resets filter to the default

This commit is contained in:
lostd 2015-01-27 09:55:07 +02:00
parent 9679e132d4
commit 48e3305be8

View file

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