diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-03-17 19:44:30 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-03-17 19:44:30 +0100 |
commit | deb2204bffa075ed5485415fc2dbd20e75d87ea4 (patch) | |
tree | e8d07d8594518c382c23915122da87076aa02955 /src/drawline.c | |
parent | f6272551bdae3f265b6948a4155b079c37fe110f (diff) |
patch 9.1.0186: cursor pos wrong on mouse click after eol with 'rl', 've' and concealv9.1.0186
Problem: Wrong cursor position when clicking after end of line with
'rightleft', 'virtualedit' and conceal.
Solution: Set values in ScreenCols[] also with SLF_RIGHTLEFT. Also fix
off-by-one cursor position with 'colorcolumn' (zeertzjq).
closes: #14218
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/drawline.c')
-rw-r--r-- | src/drawline.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/drawline.c b/src/drawline.c index cc1bed6b19..ed02f3cab6 100644 --- a/src/drawline.c +++ b/src/drawline.c @@ -975,15 +975,14 @@ draw_screen_line(win_T *wp, winlinevars_T *wlv) ++wlv->off; ++wlv->col; } + ++wlv->vcol; - if (VCOL_HLC >= rightmost_vcol + if (VCOL_HLC > rightmost_vcol # ifdef LINE_ATTR && wlv->line_attr == 0 # endif && wlv->win_attr == 0) break; - - ++wlv->vcol; } } #endif |