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 */ /* Read filter */
printprompt("filter: "); printprompt("filter: ");
tmp = readln(); tmp = readln();
if (tmp == NULL) { if (tmp == NULL)
clearprompt(); tmp = xstrdup(ifilter);
goto nochange;
}
r = setfilter(&re, tmp); r = setfilter(&re, tmp);
if (r != 0) { if (r != 0) {
free(tmp); free(tmp);