From 53c13065d26c6e116c66e73255297099dc973241 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 12 Aug 2001 17:05:36 +0000 Subject: [PATCH] One more limit to "key" names - it can't start with a digit. This allows us to use /BIND foo meta2-18~ etc. more easily. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1740 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/keyboard.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fe-common/core/keyboard.c b/src/fe-common/core/keyboard.c index bfcba6d0..01dd43c9 100644 --- a/src/fe-common/core/keyboard.c +++ b/src/fe-common/core/keyboard.c @@ -263,7 +263,8 @@ static int expand_key(const char *key, GSList **out) start = NULL; last_hyphen = TRUE; for (; *key != '\0'; key++) { if (start != NULL) { - if (isalnum(*key) || *key == '_') { + if (!isdigit(*start) && + (isalnum(*key) || *key == '_')) { /* key combo continues */ continue; }