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