1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-23 06:35:36 +00:00

cutbuffer: do not unconditionally use replace when noop was requested

This commit is contained in:
ailin-nemui 2016-03-22 14:43:31 +01:00
parent f7658640fb
commit 117c890d98

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;