mirror of
https://github.com/irssi/irssi.git
synced 2025-04-25 20:41:23 -05:00
Merge pull request #1269 from ihsinme/patch-1
fix invalid unsigned arithmetic. (cherry picked from commit 0dd60755f0428cbc8042a421dfdd4c6ea5c392cf)
This commit is contained in:
parent
80a338fe10
commit
4f88386511
@ -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 > 0 &&
|
||||
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++;
|
||||
|
||||
g_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