Mercurial > vim
diff src/drawscreen.c @ 34286:7afcc5481eb7 v9.1.0079
patch 9.1.0079: LineNrAbove/Below highlighting wrong on wrapped lines
Commit: https://github.com/vim/vim/commit/ebfd856cfdf6ea0b16c8d115000961c998ce97da
Author: zeertzjq <zeertzjq@outlook.com>
Date: Tue Feb 6 10:59:03 2024 +0100
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>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 06 Feb 2024 11:15:04 +0100 |
parents | a522c6c0127b |
children | 0690fd6f9d48 |
line wrap: on
line diff
--- a/src/drawscreen.c +++ b/src/drawscreen.c @@ -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.