1
0
forked from aniani/vim

patch 9.0.0151: a "below" aligned text property does not work with 'nowrap'

Problem:    A "below" aligned text property does not work with 'nowrap'.
Solution:   Start a new screen line to display the virtual text.
            (closes #10851)
This commit is contained in:
Bram Moolenaar
2022-08-06 13:48:20 +01:00
parent 25f40af9d2
commit 4d91d347e6
7 changed files with 468 additions and 341 deletions

View File

@@ -364,9 +364,6 @@ plines_win_nofill(
#endif
int lines;
if (!wp->w_p_wrap)
return 1;
if (wp->w_width == 0)
return 1;
@@ -377,7 +374,16 @@ plines_win_nofill(
return 1;
#endif
lines = plines_win_nofold(wp, lnum);
if (!wp->w_p_wrap)
lines = 1
#ifdef FEAT_PROP_POPUP
// add a line for each "below" aligned text property
+ prop_count_below(wp->w_buffer, lnum)
#endif
;
else
lines = plines_win_nofold(wp, lnum);
if (winheight > 0 && lines > wp->w_height)
return wp->w_height;
return lines;