aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-12-01 19:58:08 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-12-01 19:58:08 +0530
commitfeb1d2fc272f044a370eb79d29c03b543938ffa1 (patch)
treee6f7ee4da9008057cf7f1c08c433ae7894c12667
parent130cea3598de0158bdf3cf2428e269e04880594b (diff)
downloadnnn-feb1d2fc272f044a370eb79d29c03b543938ffa1.tar.gz
Handle some keys as special only if filter is empty
-rw-r--r--src/nnn.c6
1 files 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;