1
0
forked from aniani/vim

patch 9.0.0905: virtual text after the line wraps when 'wrap' is off

Problem:    Virtual text after the line wraps when 'wrap' is off.
Solution:   Only set text_prop_follows when wrapping. (closes #11463)
This commit is contained in:
Bram Moolenaar
2022-11-18 23:13:47 +00:00
parent 88456cd3c4
commit 02edfaa610
4 changed files with 47 additions and 1 deletions

View File

@@ -2043,7 +2043,9 @@ win_line(
p_extra_free2 = wlv.p_extra;
}
if (lcs_eol_one < 0 && wlv.col
if (lcs_eol_one < 0
&& wp->w_p_wrap
&& wlv.col
+ wlv.n_extra - 2 > wp->w_width)
// don't bail out at end of line
text_prop_follows = TRUE;