mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
Update gui-entry.c
This commit is contained in:
parent
5e88c107f1
commit
39ed1ba055
@ -835,8 +835,8 @@ void gui_entry_erase(GUI_ENTRY_REC *entry, int size, CUTBUFFER_UPDATE_OP update_
|
||||
}
|
||||
|
||||
if (entry->utf8)
|
||||
while (entry->pos > size+w &&
|
||||
i_wcwidth(entry->text[entry->pos-size-w]) == 0) w++;
|
||||
while (entry->pos > size + w && i_wcwidth(entry->text[entry->pos - size - w]) == 0)
|
||||
w++;
|
||||
|
||||
memmove(entry->text + entry->pos - size, entry->text + entry->pos,
|
||||
(entry->text_len-entry->pos+1) * sizeof(unichar));
|
||||
|
Loading…
x
Reference in New Issue
Block a user