From: Arun Prakash Jana Date: Sun, 1 Dec 2019 14:28:08 +0000 (+0530) Subject: Handle some keys as special only if filter is empty X-Git-Tag: v2.8~8 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=feb1d2fc272f044a370eb79d29c03b543938ffa1;p=nnn.git Handle some keys as special only if filter is empty --- diff --git a/src/nnn.c b/src/nnn.c index 7d5bd12a..d8a240d9 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;