1
0
forked from aniani/vim

patch 8.2.4520: using wrong highlight for cursor line number

Problem:    Using wrong highlight for cursor line number.
Solution:   Take filler lines into account when using CursorLineNr.
            (closes #9897)
This commit is contained in:
Bram Moolenaar
2022-03-06 19:54:13 +00:00
parent d523c7be5c
commit 127969cf98
5 changed files with 71 additions and 2 deletions

View File

@@ -1194,8 +1194,9 @@ win_line(
if (wp->w_p_cul
&& lnum == wp->w_cursor.lnum
&& (wp->w_p_culopt_flags & CULOPT_NBR)
&& (row == startrow
|| wp->w_p_culopt_flags & CULOPT_LINE))
&& (row == startrow + filler_lines
|| (row > startrow + filler_lines
&& wp->w_p_culopt_flags & CULOPT_LINE)))
char_attr = hl_combine_attr(wcr_attr, HL_ATTR(HLF_CLN));
#endif
if (wp->w_p_rnu && lnum < wp->w_cursor.lnum