diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-10-10 21:10:03 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-10-10 21:10:03 +0100 |
commit | ccf2837a05cef0ea4913ebff4f2f6000bc050271 (patch) | |
tree | 8b6923e28dd3fa10392f4c342ced3445c4121c2a /src/drawline.c | |
parent | d3283fba2593d093593fc692702aabfaa2a68523 (diff) |
patch 9.0.0718: extra empty line between two virtual text "below"v9.0.0718
Problem: Extra empty line between two virtual text "below" when 'wrap' and
'number' are set.
Solution: Reset "before" when there is no text in the screen line.
(closes #11334)
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 3d8b02ebef..bc1b20a19f 100644 --- a/src/drawline.c +++ b/src/drawline.c @@ -639,7 +639,7 @@ text_prop_position( if (wrap || right || above || below || padding > 0 || n_used < *n_extra) { - int col_off = win_col_off(wp) + win_col_off2(wp); + int col_off = win_col_off(wp) - win_col_off2(wp); int skip_add = 0; if (above) @@ -655,7 +655,7 @@ text_prop_position( if (before < 0 || !(right || below) || (below - ? (col_with_padding == 0 || !wp->w_p_wrap) + ? (col_with_padding <= col_off || !wp->w_p_wrap) : (n_used < *n_extra))) { if (right && (wrap || room < PROP_TEXT_MIN_CELLS)) |