summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2016-10-11 08:57:40 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2016-10-11 10:58:38 +0200
commitb3d9ac251491f88bbc02694250fa4ce4620527ec (patch)
tree68d2e2c2b4a7afe4d31c7c7bb1a465d6f26e1d06
parentc0e07ec5d1bb313ae75859341b6906e62ab90f1e (diff)
downloadnncmpp-b3d9ac251491f88bbc02694250fa4ce4620527ec.tar.gz
nncmpp-b3d9ac251491f88bbc02694250fa4ce4620527ec.tar.xz
nncmpp-b3d9ac251491f88bbc02694250fa4ce4620527ec.zip
Allow switching tabs with just numbers
-rw-r--r--nncmpp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nncmpp.c b/nncmpp.c
index 73493e0..e5e98a4 100644
--- a/nncmpp.c
+++ b/nncmpp.c
@@ -1896,7 +1896,7 @@ app_process_termo_event (termo_key_t *event)
}
// TODO: parametrize actions, put this among other bindings
- if (event->modifiers == TERMO_KEYMOD_ALT
+ if (!(event->modifiers & ~TERMO_KEYMOD_ALT)
&& event->code.codepoint >= '0'
&& event->code.codepoint <= '9')
{