aboutsummaryrefslogtreecommitdiffstats
path: root/src/nnn.h
diff options
context:
space:
mode:
authorGravatar Maxim Baz <git@maximbaz.com>2020-01-16 14:55:48 +0100
committerGravatar Mischievous Meerkat <engineerarun@gmail.com>2020-01-16 19:25:48 +0530
commit0fd1f142c7cb9bd51ada99b772661dc766a42254 (patch)
tree06315c24b12d45b5ba90c322833d702f7911c260 /src/nnn.h
parent527e995f1f6686966fcf13181d7a922d913aac95 (diff)
downloadnnn-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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nnn.h b/src/nnn.h
index adebd69..9b01309 100644
--- a/src/nnn.h
+++ b/src/nnn.h
@@ -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 },
};