From 9ef51b05679f9e1ee2ed6dce580455c56e051ed3 Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Sun, 7 Dec 2008 23:30:00 +0000 Subject: Simplify, isalnum && !isdigit == isalpha. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4950 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/keyboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/fe-common/core/keyboard.c b/src/fe-common/core/keyboard.c index 7c3ad5d5..49bcd399 100644 --- a/src/fe-common/core/keyboard.c +++ b/src/fe-common/core/keyboard.c @@ -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; -- cgit debian/1.2.3+git2.25.1-1-2-gaceb0