keysym: fix search for lexicographically larger strings

Probably a copy/paste error from a few lines above.

Signed-off-by: Ran Benita <ran234@gmail.com>
master
Ran Benita 2014-01-01 10:36:54 +02:00
parent 1e6e5669c6
commit e18e760846
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ find_sym(const struct name_keysym *entry, const char *name, bool icase)
}
last = name_to_keysym + len;
for (iter = entry + 1; iter < last; --iter) {
for (iter = entry + 1; iter < last; ++iter) {
if (!icase && strcmp(iter->name, name) == 0)
return iter;
if (strcasecmp(iter->name, entry->name) != 0)