0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 9.0.1305: cursor in wrong line with virtual text above

Problem:    Cursor in wrong line with virtual text above.
Solution:   Count extra line for text property above/below. (closes #11959)
This commit is contained in:
Bram Moolenaar
2023-02-12 18:03:57 +00:00
parent 234c3fab28
commit 55a27d8ea7
4 changed files with 28 additions and 0 deletions

View File

@@ -4781,6 +4781,7 @@ typedef struct {
textprop_T *cts_text_props; // text props (allocated)
char cts_has_prop_with_text; // TRUE if if a property inserts text
int cts_cur_text_width; // width of current inserted text
int cts_prop_lines; // nr of properties above or below
int cts_first_char; // width text props above the line
int cts_with_trailing; // include size of trailing props with
// last character