aboutsummaryrefslogtreecommitdiffstats
path: root/src/nnn.c
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-11-18 20:21:00 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-11-18 20:21:00 +0530
commit084a4c77c502d0ab755c7b8917834bea4b179065 (patch)
treeb7ef26c493157371997d5a4ebf997bf02d31d586 /src/nnn.c
parent8705cb99a3b10dbdfd5490f04ed7c361971c26b2 (diff)
downloadnnn-084a4c77c502d0ab755c7b8917834bea4b179065.tar.gz
Add key ] to show prompt
Diffstat (limited to 'src/nnn.c')
-rw-r--r--src/nnn.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 4a7f7e3..e1d8092 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -1936,7 +1936,7 @@ static int filterentries(char *path)
continue;
#endif
case KEY_DC: // fallthrough
- case KEY_BACKSPACE: // fallthrough
+ case KEY_BACKSPACE: // fallthrough
case '\b': // fallthrough
case CONTROL('L'): // fallthrough
case 127: /* handle DEL */
@@ -1971,7 +1971,8 @@ static int filterentries(char *path)
if (r == OK) {
/* Handle all control chars in main loop */
- if (*ch < ASCII_MAX && keyname(*ch)[0] == '^' && *ch != '^') {
+ if ((*ch < ASCII_MAX && keyname(*ch)[0] == '^' && *ch != '^')
+ || (*ch == ']' && len == 1)) {
DPRINTF_D(*ch);
DPRINTF_S(keyname(*ch));
@@ -3331,7 +3332,7 @@ static void show_help(const char *path)
"cC Execute entry R ^V Pick plugin\n"
"cU Manage session = Launch\n"
"cc SSHFS mount u Unmount\n"
- "b^P Prompt/run cmd L Lock\n"};
+ "9] ^P Prompt/run cmd L Lock\n"};
fd = create_tmp_file();
if (fd == -1)