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

patch 9.0.0488: cursor wrong with virtual text "above" and 'showbreak'

Problem:    Cursor in wrong position with virtual text "above" and
            'showbreak'.
Solution:   Take the first character column into account. (closes #11149)
This commit is contained in:
Bram Moolenaar
2022-09-17 17:15:33 +01:00
parent acd6b9976b
commit 4c7fd4d68f
4 changed files with 19 additions and 0 deletions

View File

@@ -1280,6 +1280,9 @@ win_lbr_chartabsize(
numberextra = numberwidth;
vcol += numberextra + mb_added;
#ifdef FEAT_PROP_POPUP
vcol -= wp->w_virtcol_first_char;
#endif
if (vcol >= (colnr_T)wp->w_width)
{
vcol -= wp->w_width;