comparison 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
comparison
equal deleted inserted replaced
15346:139e53b295f8 15347:f6b522596993
2747 curbuf->b_ml.ml_line_len -= count; 2747 curbuf->b_ml.ml_line_len -= count;
2748 } 2748 }
2749 #endif 2749 #endif
2750 2750
2751 // mark the buffer as changed and prepare for displaying 2751 // mark the buffer as changed and prepare for displaying
2752 changed_bytes(lnum, curwin->w_cursor.col); 2752 inserted_bytes(lnum, curwin->w_cursor.col, -count);
2753 2753
2754 return OK; 2754 return OK;
2755 } 2755 }
2756 2756
2757 /* 2757 /*