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
1 changed files with 2 additions and 4 deletions

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