key 'q' at key prompt quits context

This commit is contained in:
Arun Prakash Jana 2018-11-09 09:51:29 +05:30
parent e8eeff9b3d
commit da661987aa
No known key found for this signature in database
GPG key ID: A75979F35C080412
2 changed files with 4 additions and 0 deletions

View file

@ -273,6 +273,7 @@ The key prompt, invoked by <kbd>^B</kbd>, provides a powerful multi-functional n
| <kbd>~</kbd> | Go to HOME directory |
| <kbd>-</kbd> | Go to last visited directory |
| <kbd>&</kbd> | Go to start directory |
| <kbd>q</kbd> | Quit context |
If all the configured bookmark keys are single character, the prompt is not shown and <kbd>Enter</kbd> is not required; just press <kbd>^B</kbd> followed by the key.

3
nnn.c
View file

@ -2807,6 +2807,9 @@ nochange:
if (cfg.filtermode)
presel = FILTER;
goto begin;
case 'q':
presel = 'q';
goto nochange;
}
}