diff options
author | Maxim Baz <git@maximbaz.com> | 2020-01-16 14:55:48 +0100 |
---|---|---|
committer | Mischievous Meerkat <engineerarun@gmail.com> | 2020-01-16 19:25:48 +0530 |
commit | 0fd1f142c7cb9bd51ada99b772661dc766a42254 (patch) | |
tree | 06315c24b12d45b5ba90c322833d702f7911c260 /src/nnn.h | |
parent | 527e995f1f6686966fcf13181d7a922d913aac95 (diff) | |
download | nnn-0fd1f142c7cb9bd51ada99b772661dc766a42254.tar.gz |
Quit with an error code (#442)
* Quit with an error code
* Use `Q` as "quit with err"
* Remove extra var and simplify conditions
* Revert combining conditions
* Fix formatting
* Format help with as much tabs as possible
Diffstat (limited to 'src/nnn.h')
-rw-r--r-- | src/nnn.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -93,6 +93,7 @@ enum action { SEL_QUITCTX, SEL_QUITCD, SEL_QUIT, + SEL_QUITFAIL, SEL_CLICK, }; @@ -232,8 +233,9 @@ static struct key bindings[] = { /* Change dir on quit */ { CONTROL('G'), SEL_QUITCD }, /* Quit */ - { 'Q', SEL_QUIT }, { CONTROL('Q'), SEL_QUIT }, + /* Quit with an error code */ + { 'Q', SEL_QUITFAIL }, { KEY_MOUSE, SEL_CLICK }, { 's', SEL_SESSIONS }, }; |