From dd5b419742b94ff68c10c7c3c1836968daf3b175 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sat, 22 Feb 2020 21:20:20 +0530 Subject: Treat ~ as special shortcut in filterentries --- src/nnn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3-70-g09d2