diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-03-08 10:54:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-08 10:54:01 +0800 |
commit | 3cc48e62739a310b592126cb7465d873b5c2d3b2 (patch) | |
tree | d85991db7b8aa0f8f8849005aab0dcc84ebe3c53 /src/nvim/screen.c | |
parent | bcda54b30e397a5d2932730d20711bd70cdcdfa0 (diff) | |
parent | 2adc24b18bd9914c67a9d67d8486c06db85bdf9f (diff) | |
download | rneovim-3cc48e62739a310b592126cb7465d873b5c2d3b2.tar.gz rneovim-3cc48e62739a310b592126cb7465d873b5c2d3b2.tar.bz2 rneovim-3cc48e62739a310b592126cb7465d873b5c2d3b2.zip |
Merge pull request #17631 from zeertzjq/vim-8.2.4520
vim-patch:8.2.4520: using wrong highlight for cursor line number
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r-- | src/nvim/screen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c index ee1acd8d03..1cdee7c972 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -2890,9 +2890,9 @@ static int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, bool noc } else 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) - && filler_todo == 0) { + && (row == startrow + filler_lines + || (row > startrow + filler_lines + && wp->w_p_culopt_flags & CULOPT_LINE))) { // When 'cursorline' is set highlight the line number of // the current line differently. // When 'cursorlineopt' has "screenline" only highlight |