0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 9.0.0718: extra empty line between two virtual text "below"

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)
This commit is contained in:
Bram Moolenaar
2022-10-10 21:10:03 +01:00
parent d3283fba25
commit ccf2837a05
4 changed files with 15 additions and 2 deletions

View File

@@ -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))