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)
diff --git a/src/misc1.c b/src/misc1.c
index 76ac88e..f3d90f8 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -364,9 +364,6 @@
#endif
int lines;
- if (!wp->w_p_wrap)
- return 1;
-
if (wp->w_width == 0)
return 1;
@@ -377,7 +374,16 @@
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;