summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorailin-nemui <ailin-nemui@users.noreply.github.com>2016-03-22 22:47:42 +0100
committerailin-nemui <ailin-nemui@users.noreply.github.com>2016-03-22 22:47:42 +0100
commitd36d34fe0432fc24d75791f2aba9e626a535f478 (patch)
tree443859346b0a6d392d9db573a274c4c232335bd8 /src
parent83bee9c6b73d01b749e3c8a56e0683569e6a1ae2 (diff)
parent117c890d98d54fdee85a56f851acd6f4b3bd3be3 (diff)
downloadirssi-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.c3
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;