mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
Simplify, isalnum && !isdigit == isalpha.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4950 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
43bed5bb09
commit
9ef51b0567
@ -300,7 +300,7 @@ static int expand_key(const char *key, GSList **out)
|
||||
expand_out_char(*out, *key);
|
||||
expand_out_char(*out, '-');
|
||||
last_hyphen = FALSE; /* optional */
|
||||
} else if (last_hyphen && i_isalnum(*key) && !i_isdigit(*key)) {
|
||||
} else if (last_hyphen && i_isalpha(*key)) {
|
||||
/* possibly beginning of keycombo */
|
||||
start = key;
|
||||
last_hyphen = FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user