0
0
mirror of https://github.com/vim/vim.git synced 2025-10-20 08:14:18 -04:00

patch 9.0.1326: relative line number not updated with virtual text above

Problem:    Relative line number not updated with virtual text above.
Solution:   Adjust the row for the line number for virtual text above.
            (closes #12004)
This commit is contained in:
Bram Moolenaar
2023-02-19 14:34:37 +00:00
parent f53e065bce
commit a572b936ce
5 changed files with 51 additions and 0 deletions

View File

@@ -1598,6 +1598,15 @@ win_line(
}
}
}
if (number_only)
{
// skip over rows only used for virtual text above
wlv.row += wlv.text_prop_above_count;
if (wlv.row > endrow)
return wlv.row;
wlv.screen_row += wlv.text_prop_above_count;
}
#endif
// 'nowrap' or 'wrap' and a single line that doesn't fit: Advance to the