Mercurial > vim
diff src/textprop.c @ 29708:d97b2ce26258 v9.0.0194
patch 9.0.0194: cursor displayed in wrong position after removing text prop
Commit: https://github.com/vim/vim/commit/326c5d36e7cb8526330565109c17b4a13ff790ae
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Aug 12 13:05:49 2022 +0100
patch 9.0.0194: cursor displayed in wrong position after removing text prop
Problem: Cursor displayed in wrong position after removing text prop. (Ben
Jackson)
Solution: Invalidate the cursor position. (closes #10898)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 12 Aug 2022 14:15:04 +0200 |
parents | c1c599a367d4 |
children | bf965640744d |
line wrap: on
line diff
--- a/src/textprop.c +++ b/src/textprop.c @@ -310,6 +310,7 @@ prop_add_one( buf->b_ml.ml_flags |= ML_LINE_DIRTY; } + changed_line_display_buf(buf); changed_lines_buf(buf, start_lnum, end_lnum + 1, 0); res = OK; @@ -1507,6 +1508,7 @@ f_prop_remove(typval_T *argvars, typval_ if (first_changed > 0) { + changed_line_display_buf(buf); changed_lines_buf(buf, first_changed, last_changed + 1, 0); redraw_buf_later(buf, VALID); }