summaryrefslogtreecommitdiffstats
path: root/src/change.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-02-26 22:06:00 +0100
committerBram Moolenaar <Bram@vim.org>2020-02-26 22:06:00 +0100
commit12f20038714928bfecdeee31ed1f927324542034 (patch)
tree2a621ca1c4a57514ec42c53132f1839a452167e2 /src/change.c
parent7eeefd4a395fe3d7c7a2a0879467cf7ed4c29fe6 (diff)
patch 8.2.0324: text property not updated correctly when inserting/deletingv8.2.0324
Problem: Text property not updated correctly when inserting/deleting. Solution: Use the right column when deleting. Make zero-width text properties respect start_incl and end_incl. (Axel Forsman, closes #5696, closes #5679)
Diffstat (limited to 'src/change.c')
-rw-r--r--src/change.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/change.c b/src/change.c
index e5ac97bd54..3ee719812f 100644
--- a/src/change.c
+++ b/src/change.c
@@ -1301,7 +1301,7 @@ del_bytes(
#endif
// mark the buffer as changed and prepare for displaying
- inserted_bytes(lnum, curwin->w_cursor.col, -count);
+ inserted_bytes(lnum, col, -count);
return OK;
}