From feb1d2fc272f044a370eb79d29c03b543938ffa1 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sun, 1 Dec 2019 19:58:08 +0530 Subject: [PATCH] Handle some keys as special only if filter is empty --- src/nnn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nnn.c b/src/nnn.c index 7d5bd12..d8a240d 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -2085,12 +2085,12 @@ static int filterentries(char *path) switch (*ch) { case '/': /* works as Leader key in filter mode */ *ch = CONTROL('_'); // fallthrough - case ':': - case ';': if (len == 1) cur = oldcur; goto end; - case '?': /* '?' is an invalid regex, show help instead */ + case ':': // fallthrough /* Run plugin keys */ + case ';': // fallthrough + case '?': /* Help and config key, '?' is an invalid regex */ if (len == 1) { cur = oldcur; goto end;