0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

patch 9.0.0130: cursor position wrong when inserting around virtual text

Problem:    Cursor position wrong when inserting around virtual text.
Solution:   Update the cursor position properly.
This commit is contained in:
Bram Moolenaar
2022-08-01 15:52:55 +01:00
parent 05a8061eec
commit 1f4ee19eef
6 changed files with 29 additions and 13 deletions

View File

@@ -288,8 +288,13 @@ edit(
conceal_check_cursor_line(cursor_line_was_concealed);
#endif
// need to position cursor again when on a TAB
if (gchar_cursor() == TAB)
// Need to position cursor again when on a TAB and when on a char with
// virtual text.
if (gchar_cursor() == TAB
#ifdef FEAT_PROP_POPUP
|| curbuf->b_has_textprop
#endif
)
curwin->w_valid &= ~(VALID_WROW|VALID_WCOL|VALID_VIRTCOL);
/*