mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 12:23:37 +02: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
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue