mirror of
https://github.com/jarun/nnn.git
synced 2025-02-26 03:01:32 +00:00
Empty filter resets filter to the default
This commit is contained in:
parent
9679e132d4
commit
48e3305be8
1 changed files with 2 additions and 4 deletions
6
noice.c
6
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);
|
||||
|
|
Loading…
Add table
Reference in a new issue