Skip to content

Commit 0f20968

Browse files
author
Yorhel
committed
ui_textinput: Fix display of non-ASCII characters
...well that was a trivial bug.
1 parent 7fddf1b commit 0f20968

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ui_textinput.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ void ui_textinput_draw(ui_textinput_t *ti, int y, int x, int col, ui_cursor_t *c
287287
break;
288288
if(f < 0) {
289289
// Don't display control characters
290-
if(*ostr >= 32)
290+
if((unsigned char)*ostr >= 32)
291291
addnstr(ostr, str-ostr);
292292
if(i < ti->pos)
293293
pos += l;

0 commit comments

Comments
 (0)