|
|
22c937 |
To: vim_dev@googlegroups.com
|
|
|
22c937 |
Subject: Patch 7.4.391
|
|
|
22c937 |
Fcc: outbox
|
|
|
22c937 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
|
22c937 |
Mime-Version: 1.0
|
|
|
22c937 |
Content-Type: text/plain; charset=UTF-8
|
|
|
22c937 |
Content-Transfer-Encoding: 8bit
|
|
|
22c937 |
------------
|
|
|
22c937 |
|
|
|
22c937 |
Patch 7.4.391
|
|
|
22c937 |
Problem: No 'cursorline' highlighting when the cursor is on a line with
|
|
|
22c937 |
diff highlighting. (Benjamin Fritz)
|
|
|
22c937 |
Solution: Combine the highlight attributes. (Christian Brabandt)
|
|
|
22c937 |
Files: src/screen.c
|
|
|
22c937 |
|
|
|
22c937 |
|
|
|
22c937 |
*** ../vim-7.4.390/src/screen.c 2014-07-30 16:44:17.499534723 +0200
|
|
|
22c937 |
--- src/screen.c 2014-08-06 13:14:02.163278457 +0200
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 3702,3708 ****
|
|
|
22c937 |
--- 3702,3713 ----
|
|
|
22c937 |
char_attr = 0; /* was: hl_attr(HLF_AT); */
|
|
|
22c937 |
#ifdef FEAT_DIFF
|
|
|
22c937 |
if (diff_hlf != (hlf_T)0)
|
|
|
22c937 |
+ {
|
|
|
22c937 |
char_attr = hl_attr(diff_hlf);
|
|
|
22c937 |
+ if (wp->w_p_cul && lnum == wp->w_cursor.lnum)
|
|
|
22c937 |
+ char_attr = hl_combine_attr(char_attr,
|
|
|
22c937 |
+ hl_attr(HLF_CUL));
|
|
|
22c937 |
+ }
|
|
|
22c937 |
#endif
|
|
|
22c937 |
p_extra = NULL;
|
|
|
22c937 |
c_extra = ' ';
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 3753,3759 ****
|
|
|
22c937 |
#ifdef FEAT_SYN_HL
|
|
|
22c937 |
/* combine 'showbreak' with 'cursorline' */
|
|
|
22c937 |
if (wp->w_p_cul && lnum == wp->w_cursor.lnum)
|
|
|
22c937 |
! char_attr = hl_combine_attr(char_attr, HLF_CLN);
|
|
|
22c937 |
#endif
|
|
|
22c937 |
}
|
|
|
22c937 |
# endif
|
|
|
22c937 |
--- 3758,3765 ----
|
|
|
22c937 |
#ifdef FEAT_SYN_HL
|
|
|
22c937 |
/* combine 'showbreak' with 'cursorline' */
|
|
|
22c937 |
if (wp->w_p_cul && lnum == wp->w_cursor.lnum)
|
|
|
22c937 |
! char_attr = hl_combine_attr(char_attr,
|
|
|
22c937 |
! hl_attr(HLF_CUL));
|
|
|
22c937 |
#endif
|
|
|
22c937 |
}
|
|
|
22c937 |
# endif
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 3931,3936 ****
|
|
|
22c937 |
--- 3937,3944 ----
|
|
|
22c937 |
&& n_extra == 0)
|
|
|
22c937 |
diff_hlf = HLF_CHD; /* changed line */
|
|
|
22c937 |
line_attr = hl_attr(diff_hlf);
|
|
|
22c937 |
+ if (wp->w_p_cul && lnum == wp->w_cursor.lnum)
|
|
|
22c937 |
+ line_attr = hl_combine_attr(line_attr, hl_attr(HLF_CUL));
|
|
|
22c937 |
}
|
|
|
22c937 |
#endif
|
|
|
22c937 |
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 4729,4735 ****
|
|
|
22c937 |
--- 4737,4748 ----
|
|
|
22c937 |
{
|
|
|
22c937 |
diff_hlf = HLF_CHD;
|
|
|
22c937 |
if (attr == 0 || char_attr != attr)
|
|
|
22c937 |
+ {
|
|
|
22c937 |
char_attr = hl_attr(diff_hlf);
|
|
|
22c937 |
+ if (wp->w_p_cul && lnum == wp->w_cursor.lnum)
|
|
|
22c937 |
+ char_attr = hl_combine_attr(char_attr,
|
|
|
22c937 |
+ hl_attr(HLF_CUL));
|
|
|
22c937 |
+ }
|
|
|
22c937 |
}
|
|
|
22c937 |
# endif
|
|
|
22c937 |
}
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 10174,10182 ****
|
|
|
22c937 |
break;
|
|
|
22c937 |
screen_puts_len(NameBuff, len, 0, col,
|
|
|
22c937 |
#if defined(FEAT_SYN_HL)
|
|
|
22c937 |
! hl_combine_attr(attr, hl_attr(HLF_T))
|
|
|
22c937 |
#else
|
|
|
22c937 |
! attr
|
|
|
22c937 |
#endif
|
|
|
22c937 |
);
|
|
|
22c937 |
col += len;
|
|
|
22c937 |
--- 10187,10195 ----
|
|
|
22c937 |
break;
|
|
|
22c937 |
screen_puts_len(NameBuff, len, 0, col,
|
|
|
22c937 |
#if defined(FEAT_SYN_HL)
|
|
|
22c937 |
! hl_combine_attr(attr, hl_attr(HLF_T))
|
|
|
22c937 |
#else
|
|
|
22c937 |
! attr
|
|
|
22c937 |
#endif
|
|
|
22c937 |
);
|
|
|
22c937 |
col += len;
|
|
|
22c937 |
*** ../vim-7.4.390/src/version.c 2014-08-06 12:49:06.711289205 +0200
|
|
|
22c937 |
--- src/version.c 2014-08-06 13:19:19.135276179 +0200
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 736,737 ****
|
|
|
22c937 |
--- 736,739 ----
|
|
|
22c937 |
{ /* Add new patch number below this line */
|
|
|
22c937 |
+ /**/
|
|
|
22c937 |
+ 391,
|
|
|
22c937 |
/**/
|
|
|
22c937 |
|
|
|
22c937 |
--
|
|
|
22c937 |
It's totally unfair to suggest - as many have - that engineers are socially
|
|
|
22c937 |
inept. Engineers simply have different objectives when it comes to social
|
|
|
22c937 |
interaction.
|
|
|
22c937 |
(Scott Adams - The Dilbert principle)
|
|
|
22c937 |
|
|
|
22c937 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
|
22c937 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
|
22c937 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
|
22c937 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|