From e59c42bcc0a4c1a353d39e7e253adc293a152988 Mon Sep 17 00:00:00 2001 From: ailin-nemui Date: Fri, 7 Feb 2020 16:33:53 +0100 Subject: [PATCH] refine zero width input test in empty line fixes #1153 --- src/fe-text/gui-entry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fe-text/gui-entry.c b/src/fe-text/gui-entry.c index 8ff7e485..d1cc8811 100644 --- a/src/fe-text/gui-entry.c +++ b/src/fe-text/gui-entry.c @@ -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);