summaryrefslogtreecommitdiff
path: root/src/screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/screen.c b/src/screen.c
index 97d636d7..fd74707e 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -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
}
}