diff options
author | Matthieu Coudron <teto@users.noreply.github.com> | 2021-03-23 14:01:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-23 14:01:57 +0100 |
commit | a1a0bc618f02a61c2964e22015ff73520e1d10d8 (patch) | |
tree | 7790380bd5feee6f1dea097a63a9125a340d0e24 /src | |
parent | 3e5efa50b689955beb36ce9f8cca7138fd5f0f8e (diff) | |
parent | e0d0e46cf2900a6c2d3a0d4b71a9422201b4797b (diff) | |
download | rneovim-a1a0bc618f02a61c2964e22015ff73520e1d10d8.tar.gz rneovim-a1a0bc618f02a61c2964e22015ff73520e1d10d8.tar.bz2 rneovim-a1a0bc618f02a61c2964e22015ff73520e1d10d8.zip |
Merge pull request #14190 from teto/fix-cursorlinenr
fix CursorLineNr with diff
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/screen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c index d50520f49e..0334a808f4 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -2758,7 +2758,8 @@ static int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, // :sign defined with "numhl" highlight. char_attr = sign_get_attr(num_sign, SIGN_NUMHL); } else if ((wp->w_p_cul || wp->w_p_rnu) - && lnum == wp->w_cursor.lnum) { + && lnum == wp->w_cursor.lnum + && filler_todo == 0) { // When 'cursorline' is set highlight the line number of // the current line differently. // TODO(vim): Can we use CursorLine instead of CursorLineNr |