Mercurial > vim
diff src/screen.c @ 3427:3db4282d5e6b v7.3.479
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)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 23 Mar 2012 16:25:17 +0100 |
parents | 8332129d9ae8 |
children | f52d2ea0f81c |
line wrap: on
line diff
--- a/src/screen.c +++ b/src/screen.c @@ -3501,9 +3501,11 @@ win_line(wp, lnum, startrow, endrow, noc 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 } }