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:
commit
d36d34fe04
@ -582,7 +582,8 @@ void gui_entry_erase(GUI_ENTRY_REC *entry, int size, CUTBUFFER_UPDATE_OP update_
|
|||||||
if (size == 0 || entry->pos < size)
|
if (size == 0 || entry->pos < size)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (entry->cutbuffer_len == 0) {
|
if (update_cutbuffer != CUTBUFFER_UPDATE_NOOP
|
||||||
|
&& entry->cutbuffer_len == 0) {
|
||||||
update_cutbuffer = CUTBUFFER_UPDATE_REPLACE;
|
update_cutbuffer = CUTBUFFER_UPDATE_REPLACE;
|
||||||
}
|
}
|
||||||
int cutbuffer_new_size = entry->cutbuffer_len + size;
|
int cutbuffer_new_size = entry->cutbuffer_len + size;
|
||||||
|
Loading…
Reference in New Issue
Block a user