src/nnn.c | 6 +++--- diff --git a/src/nnn.c b/src/nnn.c index deb1520af385c33cb8f52a8e1db0b505cdc2ace4..67a1dd4d43c8780c80ff545e65a2a9f22d375fb1 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -3367,9 +3367,9 @@ /* Forward-filtering optimization: * - new matches can only be a subset of current matches. */ /* ndents = total; */ - r = matches(pln); - if (r <= 0) { - !r ? unget_wch(KEY_BACKSPACE) : showfilter(ln); + + if (matches(pln) == -1) { + showfilter(ln); continue; }