diff options
author | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2016-03-22 22:47:42 +0100 |
---|---|---|
committer | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2016-03-22 22:47:42 +0100 |
commit | d36d34fe0432fc24d75791f2aba9e626a535f478 (patch) | |
tree | 443859346b0a6d392d9db573a274c4c232335bd8 /src | |
parent | 83bee9c6b73d01b749e3c8a56e0683569e6a1ae2 (diff) | |
parent | 117c890d98d54fdee85a56f851acd6f4b3bd3be3 (diff) | |
download | irssi-d36d34fe0432fc24d75791f2aba9e626a535f478.zip |
Merge pull request #456 from ailin-nemui/fix_454
cutbuffer: do not unconditionally use replace when noop was requested
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-text/gui-entry.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fe-text/gui-entry.c b/src/fe-text/gui-entry.c index 27778b2b..f275c235 100644 --- a/src/fe-text/gui-entry.c +++ b/src/fe-text/gui-entry.c @@ -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; |