1
0
mirror of https://github.com/irssi/irssi.git synced 2024-10-27 05:20:20 -04:00

Update gui-entry.c

This commit is contained in:
ihsinme 2021-02-05 18:36:15 +03:00 committed by GitHub
parent 33bfd88d9e
commit 5e88c107f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -835,7 +835,7 @@ void gui_entry_erase(GUI_ENTRY_REC *entry, int size, CUTBUFFER_UPDATE_OP update_
} }
if (entry->utf8) if (entry->utf8)
while (entry->pos > size-w && while (entry->pos > size+w &&
i_wcwidth(entry->text[entry->pos-size-w]) == 0) w++; i_wcwidth(entry->text[entry->pos-size-w]) == 0) w++;
memmove(entry->text + entry->pos - size, entry->text + entry->pos, memmove(entry->text + entry->pos - size, entry->text + entry->pos,