mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
fix: stop using CursorLineNr in front of fillers
filling lines in diff mode.
This commit is contained in:
parent
1df1098b0c
commit
f2e1709d49
@ -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
|
||||
|
@ -1107,4 +1107,5 @@ it('diff updates line numbers below filler lines', function()
|
||||
{3:[No Name] [+] }{7:[No Name] [+] }|
|
||||
|
|
||||
]])
|
||||
command("hi CursorLineNr guibg=red")
|
||||
end)
|
||||
|
Loading…
Reference in New Issue
Block a user