diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-10-11 16:47:22 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-10-11 16:47:22 +0100 |
commit | a9a364872e41932990aba1787af65f67c7e14917 (patch) | |
tree | f4e456fe564164e54798cf1a6e5d53e0e8dd2644 /src/drawline.c | |
parent | 877151b3d8f6dacca56ce8e7f20fa5b27142d782 (diff) |
patch 9.0.0723: extra empty line below virtual text when 'list' is setv9.0.0723
Problem: Extra empty line below virtual text when 'list' is set.
Solution: Do not reset lcs_eol_one but set text_prop_follows. (closes #11339)
Diffstat (limited to 'src/drawline.c')
-rw-r--r-- | src/drawline.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drawline.c b/src/drawline.c index 2f28417acb..3a4156bc2f 100644 --- a/src/drawline.c +++ b/src/drawline.c @@ -2017,7 +2017,7 @@ win_line( if (lcs_eol_one < 0 && wlv.col + wlv.n_extra - 2 > wp->w_width) // don't bail out at end of line - lcs_eol_one = 0; + text_prop_follows = TRUE; // When 'wrap' is off then for "below" we need // to start a new line explictly. @@ -2067,7 +2067,7 @@ win_line( // If this is an "above" text prop and 'nowrap' the we // must wrap anyway. text_prop_above = above; - text_prop_follows = other_tpi != -1 + text_prop_follows |= other_tpi != -1 && (wp->w_p_wrap || (text_props[other_tpi].tp_flags & (TP_FLAG_ALIGN_BELOW | TP_FLAG_ALIGN_RIGHT))); |