diff src/misc1.c @ 15347:f6b522596993 v8.1.0681

patch 8.1.0681: text properties as not adjusted for deleted text commit https://github.com/vim/vim/commit/33c8ca923ed6d5638fa98afabb2e25b5056dd47b Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jan 2 18:00:27 2019 +0100 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.
author Bram Moolenaar <Bram@vim.org>
date Wed, 02 Jan 2019 18:15:04 +0100
parents 03a7a9fdb792
children 3e02464faaac
line wrap: on
line diff
--- 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;
 }