Mercurial > vim
diff src/misc1.c @ 29621:f1ed6f520d09 v9.0.0151
patch 9.0.0151: a "below" aligned text property does not work with 'nowrap'
Commit: https://github.com/vim/vim/commit/4d91d347e65a5621621ea1e3c97dce2c677ed71d
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 6 13:48:20 2022 +0100
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 06 Aug 2022 15:00:03 +0200 |
parents | 057c26b5c33a |
children | fc0f93590fd4 |
line wrap: on
line diff
--- a/src/misc1.c +++ b/src/misc1.c @@ -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;