1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Merge pull request #456 from ailin-nemui/fix_454

cutbuffer: do not unconditionally use replace when noop was requested
This commit is contained in:
ailin-nemui 2016-03-22 22:47:42 +01:00
commit d36d34fe04

View File

@ -582,7 +582,8 @@ void gui_entry_erase(GUI_ENTRY_REC *entry, int size, CUTBUFFER_UPDATE_OP update_
if (size == 0 || entry->pos < size)
return;
if (entry->cutbuffer_len == 0) {
if (update_cutbuffer != CUTBUFFER_UPDATE_NOOP
&& entry->cutbuffer_len == 0) {
update_cutbuffer = CUTBUFFER_UPDATE_REPLACE;
}
int cutbuffer_new_size = entry->cutbuffer_len + size;