summaryrefslogtreecommitdiffstats
path: root/src/misc1.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-01-02 18:00:27 +0100
committerBram Moolenaar <Bram@vim.org>2019-01-02 18:00:27 +0100
commit33c8ca923ed6d5638fa98afabb2e25b5056dd47b (patch)
tree33e389557ab7b0a3e6478eb14d7d3547397da122 /src/misc1.c
parentc85ffc9daba6f66d5958ae80249d26f7f81bfced (diff)
patch 8.1.0681: text properties as not adjusted for deleted textv8.1.0681
Problem: Text properties as not adjusted for deleted text. Solution: Adjust text properties when backspacing to delete text.
Diffstat (limited to 'src/misc1.c')
-rw-r--r--src/misc1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc1.c b/src/misc1.c
index 692d5c769e..c2d2d19d2f 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -2749,7 +2749,7 @@ del_bytes(
#endif
// mark the buffer as changed and prepare for displaying
- changed_bytes(lnum, curwin->w_cursor.col);
+ inserted_bytes(lnum, curwin->w_cursor.col, -count);
return OK;
}