From aae1e3392a345d073c3ede021f9b8b5166d11bbc Mon Sep 17 00:00:00 2001 From: ailin-nemui Date: Fri, 14 Feb 2020 20:17:50 +0100 Subject: [PATCH] Merge pull request #1154 from ailin-nemui/zerowidth refine zero width input test in empty line (cherry picked from commit b38ae68fb544612c8899d1e1196b434f7e7ba70b) --- 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 a3cb3ec5..ac4f3790 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);