From 33c8ca923ed6d5638fa98afabb2e25b5056dd47b Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 2 Jan 2019 18:00:27 +0100 Subject: patch 8.1.0681: text properties as not adjusted for deleted text Problem: Text properties as not adjusted for deleted text. Solution: Adjust text properties when backspacing to delete text. --- src/misc1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/misc1.c') 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; } -- cgit v1.2.3