mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 15:42:26 +02: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
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue