diff options
author | Timo Sirainen <cras@irssi.org> | 2001-08-12 17:05:36 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-08-12 17:05:36 +0000 |
commit | 53c13065d26c6e116c66e73255297099dc973241 (patch) | |
tree | 2bfaacc63dc878f3ddc7d8c50b1294738626c37c /src | |
parent | 55be71a726a82d2d6c2afbfc4b43299379ee75b2 (diff) | |
download | irssi-53c13065d26c6e116c66e73255297099dc973241.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-common/core/keyboard.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |