aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-02-22 21:20:20 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-02-22 21:25:05 +0530
commitdd5b419742b94ff68c10c7c3c1836968daf3b175 (patch)
tree609922d82690a15a5b97da1a1a2d652176e26e2b /src
parent04ab3751af837b74ff73c989cff3eca8f2fd69c5 (diff)
downloadnnn-dd5b419742b94ff68c10c7c3c1836968daf3b175.tar.gz
Treat ~ as special shortcut in filterentries
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index ae7a906..4be2a78 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -2499,9 +2499,10 @@ static int filterentries(char *path, char *lastname)
if (len == 1) {
switch (*ch) {
case '=': // fallthrough /* Launch app */
- case ']': // fallthorugh /*Prompt key */
+ case ']': // fallthorugh /* Prompt key */
case ';': // fallthrough /* Run plugin key */
case ',': // fallthrough /* Pin CWD */
+ case '~': // fallthrough /* Go HOME */
case '?': /* Help and config key, '?' is an invalid regex */
goto end;
}