mirror of
https://github.com/jarun/nnn.git
synced 2024-12-01 02:49:44 +00:00
Empty filter resets filter to the default
This commit is contained in:
parent
9679e132d4
commit
48e3305be8
6
noice.c
6
noice.c
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue