From b3d9ac251491f88bbc02694250fa4ce4620527ec Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Tue, 11 Oct 2016 08:57:40 +0200 Subject: Allow switching tabs with just numbers --- nncmpp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') { -- cgit v1.2.3-70-g09d2