mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
updated for version 7.4.391
Problem: No 'cursorline' highlighting when the cursor is on a line with diff highlighting. (Benjamin Fritz) Solution: Combine the highlight attributes. (Christian Brabandt)
This commit is contained in:
15
src/screen.c
15
src/screen.c
@@ -3702,7 +3702,12 @@ win_line(wp, lnum, startrow, endrow, nochange)
|
||||
char_attr = 0; /* was: hl_attr(HLF_AT); */
|
||||
#ifdef FEAT_DIFF
|
||||
if (diff_hlf != (hlf_T)0)
|
||||
{
|
||||
char_attr = hl_attr(diff_hlf);
|
||||
if (wp->w_p_cul && lnum == wp->w_cursor.lnum)
|
||||
char_attr = hl_combine_attr(char_attr,
|
||||
hl_attr(HLF_CUL));
|
||||
}
|
||||
#endif
|
||||
p_extra = NULL;
|
||||
c_extra = ' ';
|
||||
@@ -3753,7 +3758,8 @@ win_line(wp, lnum, startrow, endrow, nochange)
|
||||
#ifdef FEAT_SYN_HL
|
||||
/* combine 'showbreak' with 'cursorline' */
|
||||
if (wp->w_p_cul && lnum == wp->w_cursor.lnum)
|
||||
char_attr = hl_combine_attr(char_attr, HLF_CLN);
|
||||
char_attr = hl_combine_attr(char_attr,
|
||||
hl_attr(HLF_CUL));
|
||||
#endif
|
||||
}
|
||||
# endif
|
||||
@@ -3931,6 +3937,8 @@ win_line(wp, lnum, startrow, endrow, nochange)
|
||||
&& n_extra == 0)
|
||||
diff_hlf = HLF_CHD; /* changed line */
|
||||
line_attr = hl_attr(diff_hlf);
|
||||
if (wp->w_p_cul && lnum == wp->w_cursor.lnum)
|
||||
line_attr = hl_combine_attr(line_attr, hl_attr(HLF_CUL));
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -4729,7 +4737,12 @@ win_line(wp, lnum, startrow, endrow, nochange)
|
||||
{
|
||||
diff_hlf = HLF_CHD;
|
||||
if (attr == 0 || char_attr != attr)
|
||||
{
|
||||
char_attr = hl_attr(diff_hlf);
|
||||
if (wp->w_p_cul && lnum == wp->w_cursor.lnum)
|
||||
char_attr = hl_combine_attr(char_attr,
|
||||
hl_attr(HLF_CUL));
|
||||
}
|
||||
}
|
||||
# endif
|
||||
}
|
||||
|
@@ -734,6 +734,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
391,
|
||||
/**/
|
||||
390,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user