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