1
0
forked from aniani/vim

patch 9.0.0709: virtual text "after" not correct with 'nowrap'

Problem:    Virtual text "after" not correct with 'nowrap'.
Solution:   Do not display "after" text prop on the next line when 'wrap' is
            off.
This commit is contained in:
Bram Moolenaar
2022-10-09 21:53:58 +01:00
parent 15b314ffbb
commit f167c7b424
6 changed files with 55 additions and 10 deletions

View File

@@ -1178,7 +1178,7 @@ win_lbr_chartabsize(
{
int n_extra = (int)STRLEN(p);
cells = text_prop_position(wp, tp,
cells = text_prop_position(wp, tp, vcol,
(vcol + size) % (wp->w_width - col_off) + col_off,
&n_extra, &p, NULL, NULL);
#ifdef FEAT_LINEBREAK