commit feb1d2fc272f044a370eb79d29c03b543938ffa1 parent 130cea3598de0158bdf3cf2428e269e04880594b Author: Arun Prakash Jana <engineerarun@gmail.com> Date: Sun, 1 Dec 2019 19:58:08 +0530 Handle some keys as special only if filter is empty Diffstat:
| M | src/nnn.c | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git 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;