forked from aniani/vim
patch 9.1.0079: LineNrAbove/Below highlighting wrong on wrapped lines
Problem: LineNrAbove and LineNrBelow background wrong on wrapped lines. Solution: Update number column also for wrapped part of a line. (zeertzjq) closes: #13974 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
f7f33e3719
commit
ebfd856cfd
@@ -2503,7 +2503,7 @@ win_update(win_T *wp)
|
||||
#endif
|
||||
|
||||
// Display one line.
|
||||
row = win_line(wp, lnum, srow, wp->w_height, FALSE, &spv);
|
||||
row = win_line(wp, lnum, srow, wp->w_height, 0, &spv);
|
||||
|
||||
#ifdef FEAT_FOLDING
|
||||
wp->w_lines[idx].wl_folded = FALSE;
|
||||
@@ -2550,7 +2550,8 @@ win_update(win_T *wp)
|
||||
fold_line(wp, fold_count, &win_foldinfo, lnum, row);
|
||||
else
|
||||
#endif
|
||||
(void)win_line(wp, lnum, srow, wp->w_height, TRUE, &spv);
|
||||
(void)win_line(wp, lnum, srow, wp->w_height,
|
||||
wp->w_lines[idx].wl_size, &spv);
|
||||
}
|
||||
|
||||
// This line does not need to be drawn, advance to the next one.
|
||||
|
Reference in New Issue
Block a user