Browse Source

Empty filter resets filter to the default

master
lostd 10 years ago
parent
commit
48e3305be8
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      noice.c

+ 2
- 4
noice.c 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);


Loading…
Cancel
Save