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