diff options
author | Todd A. Pratt <ae88925@gmail.com> | 2015-11-02 08:08:38 -0500 |
---|---|---|
committer | Todd A. Pratt <ae88925@gmail.com> | 2015-11-02 08:08:38 -0500 |
commit | 4f8974f66e434cfe5b47fa143728488758b3833e (patch) | |
tree | 61d577efa95ba5b3a0666f911fc6f12f10ab6a04 /src/fe-text/gui-entry.c | |
parent | 3c95f6aae9826c10a50c4a0f12c16fca6038410c (diff) | |
parent | 50775e92e64561837e6c805fc8fef19aedaafeb4 (diff) | |
download | irssi-4f8974f66e434cfe5b47fa143728488758b3833e.zip |
Merge branch 'master' of github.com:toddpratt/irssi
Diffstat (limited to 'src/fe-text/gui-entry.c')
-rw-r--r-- | src/fe-text/gui-entry.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fe-text/gui-entry.c b/src/fe-text/gui-entry.c index b7d58019..a83bcf64 100644 --- a/src/fe-text/gui-entry.c +++ b/src/fe-text/gui-entry.c @@ -35,21 +35,21 @@ static unichar i_toupper(unichar c) { if (term_type == TERM_TYPE_UTF8) return g_unichar_toupper(c); - return (c >= 0 && c <= 255) ? toupper(c) : c; + return c <= 255 ? toupper(c) : c; } static unichar i_tolower(unichar c) { if (term_type == TERM_TYPE_UTF8) return g_unichar_tolower(c); - return (c >= 0 && c <= 255) ? tolower(c) : c; + return c <= 255 ? tolower(c) : c; } static int i_isalnum(unichar c) { if (term_type == TERM_TYPE_UTF8) return (g_unichar_isalnum(c) || mk_wcwidth(c) == 0); - return (c >= 0 && c <= 255) ? isalnum(c) : 0; + return c <= 255 ? isalnum(c) : 0; } GUI_ENTRY_REC *active_entry; |