diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-08-12 13:05:49 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-08-12 13:05:49 +0100 |
commit | 326c5d36e7cb8526330565109c17b4a13ff790ae (patch) | |
tree | 58ae0580aa13a128387b13ac06e24d52b4d073fa /src/textprop.c | |
parent | e38fc86180fd3f6b372648eea6adc3f623fea302 (diff) | |
download | vim-git-326c5d36e7cb8526330565109c17b4a13ff790ae.tar.gz |
patch 9.0.0194: cursor displayed in wrong position after removing text propv9.0.0194
Problem: Cursor displayed in wrong position after removing text prop. (Ben
Jackson)
Solution: Invalidate the cursor position. (closes #10898)
Diffstat (limited to 'src/textprop.c')
-rw-r--r-- | src/textprop.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/textprop.c b/src/textprop.c index f33edc211..7d594da16 100644 --- 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_T *rettv) if (first_changed > 0) { + changed_line_display_buf(buf); changed_lines_buf(buf, first_changed, last_changed + 1, 0); redraw_buf_later(buf, VALID); } |