diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-03-06 19:54:13 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-03-06 19:54:13 +0000 |
commit | 127969cf98000a760826ca3a0f3781a8b79522f1 (patch) | |
tree | 2d5f5f7f346883705b61aa44d94d3ab3e6b8dc0b /src/drawline.c | |
parent | d523c7be5cf39174f3447e8ec498051cea381d27 (diff) |
patch 8.2.4520: using wrong highlight for cursor line numberv8.2.4520
Problem: Using wrong highlight for cursor line number.
Solution: Take filler lines into account when using CursorLineNr.
(closes #9897)
Diffstat (limited to 'src/drawline.c')
-rw-r--r-- | src/drawline.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/drawline.c b/src/drawline.c index a55c06dc97..6a5c28df1d 100644 --- a/src/drawline.c +++ b/src/drawline.c @@ -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 |