commit | 33c8ca923ed6d5638fa98afabb2e25b5056dd47b | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Jan 02 18:00:27 2019 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Jan 02 18:00:27 2019 +0100 |
tree | 33e389557ab7b0a3e6478eb14d7d3547397da122 | |
parent | c85ffc9daba6f66d5958ae80249d26f7f81bfced [diff] [blame] |
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.
diff --git a/src/misc1.c b/src/misc1.c index 692d5c7..c2d2d19 100644 --- a/src/misc1.c +++ b/src/misc1.c
@@ -2749,7 +2749,7 @@ #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; }