summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLars Henriksen <LarsHenriksen@get2net.dk>2020-06-19 20:40:50 +0200
committerLukas Fleischer <lfleischer@calcurse.org>2020-06-21 09:27:18 -0400
commit5198638ea3d741c40da9f641f318760bb163663f (patch)
treee1eb771b82c91cf7bf89ea3e4059336f7651bb26 /src
parent4ea59f23dc68071d24897679ffab78e11f2ad795 (diff)
downloadcalcurse-5198638ea3d741c40da9f641f318760bb163663f.tar.gz
calcurse-5198638ea3d741c40da9f641f318760bb163663f.zip
Fix configuration menu 'Quit' action
Signed-off-by: Lars Henriksen <LarsHenriksen@get2net.dk> Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src')
-rw-r--r--src/custom.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/custom.c b/src/custom.c
index c699797..0e5e554 100644
--- a/src/custom.c
+++ b/src/custom.c
@@ -1201,7 +1201,10 @@ void custom_config_main(void)
wmove(win[STA].p, 0, 0);
wins_doupdate();
- while ((ch = keys_wgetch(win[KEY].p)) != 'q') {
+ while (1) {
+ ch = keys_wgetch(win[KEY].p);
+ if (keys_get_action(ch) == KEY_GENERIC_QUIT)
+ break;
switch (ch) {
case 'C':
case 'c':