0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

updated for version 7.3.479

Problem:    When 'cursorline' is set the line number highlighting can't be set
            separately.
Solution:   Add "CursorLineNr". (Howard Buchholz)
This commit is contained in:
Bram Moolenaar
2012-03-23 16:25:17 +01:00
parent 507cc8acf1
commit 06ca513e2c
5 changed files with 14 additions and 5 deletions

View File

@@ -3501,9 +3501,11 @@ win_line(wp, lnum, startrow, endrow, nochange)
char_attr = hl_attr(HLF_N);
#ifdef FEAT_SYN_HL
/* When 'cursorline' is set highlight the line number of
* the current line differently. */
* the current line differently.
* TODO: Can we use CursorLine instead of CursorLineNr
* when CursorLineNr isn't set? */
if (wp->w_p_cul && lnum == wp->w_cursor.lnum)
char_attr = hl_combine_attr(hl_attr(HLF_CUL), char_attr);
char_attr = hl_attr(HLF_CLN);
#endif
}
}