mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -05:00
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
This commit is contained in:
parent
55be71a726
commit
53c13065d2
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user