From 33bfd88d9ecb6a89992d9c3c7bc5ec9665c3538c Mon Sep 17 00:00:00 2001 From: ihsinme <61293369+ihsinme@users.noreply.github.com> Date: Fri, 5 Feb 2021 18:34:54 +0300 Subject: [PATCH] Update gui-entry.c --- 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 d1cc8811..4fde83c8 100644 --- a/src/fe-text/gui-entry.c +++ b/src/fe-text/gui-entry.c @@ -835,7 +835,7 @@ void gui_entry_erase(GUI_ENTRY_REC *entry, int size, CUTBUFFER_UPDATE_OP update_ } if (entry->utf8) - while (entry->pos-size-w > 0 && + 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,