Skip to content

Commit 6ac42ad

Browse files
committed
updated for version 7.4.682
Problem: The search highlighting and match highlighting replaces the cursorline highlighting, this doesn't look good. Solution: Combine the highlighting. (Yasuhiro Matsumoto)
1 parent 76bdd7c commit 6ac42ad

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/screen.c

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4010,17 +4010,22 @@ win_line(wp, lnum, startrow, endrow, nochange)
40104010

40114011
/* Decide which of the highlight attributes to use. */
40124012
attr_pri = TRUE;
4013+
#ifdef LINE_ATTR
40134014
if (area_attr != 0)
4014-
char_attr = area_attr;
4015+
char_attr = hl_combine_attr(line_attr, area_attr);
40154016
else if (search_attr != 0)
4016-
char_attr = search_attr;
4017-
#ifdef LINE_ATTR
4017+
char_attr = hl_combine_attr(line_attr, search_attr);
40184018
/* Use line_attr when not in the Visual or 'incsearch' area
40194019
* (area_attr may be 0 when "noinvcur" is set). */
40204020
else if (line_attr != 0 && ((fromcol == -10 && tocol == MAXCOL)
40214021
|| vcol < fromcol || vcol_prev < fromcol_prev
40224022
|| vcol >= tocol))
40234023
char_attr = line_attr;
4024+
#else
4025+
if (area_attr != 0)
4026+
char_attr = area_attr;
4027+
else if (search_attr != 0)
4028+
char_attr = search_attr;
40244029
#endif
40254030
else
40264031
{

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ static char *(features[]) =
741741

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
682,
744746
/**/
745747
681,
746748
/**/

0 commit comments

Comments
 (0)