mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 03:40:16 +02:00
Merge pull request #1154 from ailin-nemui/zerowidth
refine zero width input test in empty line
(cherry picked from commit b38ae68fb5)
This commit is contained in:
parent
d3bb5d7015
commit
aae1e3392a
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue