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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user