mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 20:01:27 +00:00
Fix #1117: Revert "Ignore filter key if no results"
This reverts commit 3ef50f06f8
.
This commit is contained in:
parent
23a806864f
commit
b54f771a44
|
@ -3367,9 +3367,9 @@ static int filterentries(char *path, char *lastname)
|
||||||
* - new matches can only be a subset of current matches.
|
* - new matches can only be a subset of current matches.
|
||||||
*/
|
*/
|
||||||
/* ndents = total; */
|
/* ndents = total; */
|
||||||
r = matches(pln);
|
|
||||||
if (r <= 0) {
|
if (matches(pln) == -1) {
|
||||||
!r ? unget_wch(KEY_BACKSPACE) : showfilter(ln);
|
showfilter(ln);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue