1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-01 04:14:16 -04:00

refine zero width input test in empty line

fixes #1153
This commit is contained in:
ailin-nemui 2020-02-07 16:33:53 +01:00
parent 363a79dc7a
commit e59c42bcc0

View File

@ -654,7 +654,7 @@ void gui_entry_insert_char(GUI_ENTRY_REC *entry, unichar chr)
if (chr == 0 || chr == 13 || chr == 10)
return; /* never insert NUL, CR or LF characters */
if (entry->utf8 && entry->pos == 0 && i_wcwidth(chr) == 0)
if (entry->utf8 && entry->pos == 0 && unichar_isprint(chr) && i_wcwidth(chr) == 0)
return;
gui_entry_redraw_from(entry, entry->pos);