]> Sergey Matveev's repositories - nnn.git/commitdiff
Handle some keys as special only if filter is empty
authorArun Prakash Jana <engineerarun@gmail.com>
Sun, 1 Dec 2019 14:28:08 +0000 (19:58 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sun, 1 Dec 2019 14:28:08 +0000 (19:58 +0530)
src/nnn.c

index 7d5bd12a564cffdc5caf924b427d180781db7422..d8a240d994ad2d3a2cdfa8f9b1978e5c81e6a2ca 100644 (file)
--- 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;