summaryrefslogtreecommitdiff
path: root/nncmpp.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p@janouch.name>2018-10-20 11:26:19 +0200
committerPřemysl Janouch <p@janouch.name>2018-10-20 22:13:33 +0200
commit3c09a16a02cb24eb3d3b8d45d5f348f76115925c (patch)
tree90a6fb6713c627de4d47b98922b6269bf60cd0b3 /nncmpp.c
parent9c16ab41361e8be0ef301212c48905a229a8e451 (diff)
downloadnncmpp-3c09a16a02cb24eb3d3b8d45d5f348f76115925c.tar.gz
nncmpp-3c09a16a02cb24eb3d3b8d45d5f348f76115925c.tar.xz
nncmpp-3c09a16a02cb24eb3d3b8d45d5f348f76115925c.zip
Fix input handling
When app_process_termo_event() returns false, it always means to beep, not to quit the application.
Diffstat (limited to 'nncmpp.c')
-rw-r--r--nncmpp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nncmpp.c b/nncmpp.c
index 6c1aa55..e9c4faf 100644
--- a/nncmpp.c
+++ b/nncmpp.c
@@ -3428,7 +3428,7 @@ app_on_key_timer (void *user_data)
termo_key_t event;
if (termo_getkey_force (g.tk, &event) == TERMO_RES_KEY)
if (!app_process_termo_event (&event))
- app_quit (); // presumably an ESC, questionable
+ beep ();
}
static void