Karsten Hopp d6b3df
To: vim_dev@googlegroups.com
Karsten Hopp d6b3df
Subject: Patch 7.4.682
Karsten Hopp d6b3df
Fcc: outbox
Karsten Hopp d6b3df
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp d6b3df
Mime-Version: 1.0
Karsten Hopp d6b3df
Content-Type: text/plain; charset=UTF-8
Karsten Hopp d6b3df
Content-Transfer-Encoding: 8bit
Karsten Hopp d6b3df
------------
Karsten Hopp d6b3df
Karsten Hopp d6b3df
Patch 7.4.682
Karsten Hopp d6b3df
Problem:    The search highlighting and match highlighting replaces the
Karsten Hopp d6b3df
	    cursorline highlighting, this doesn't look good.
Karsten Hopp d6b3df
Solution:   Combine the highlighting. (Yasuhiro Matsumoto)
Karsten Hopp d6b3df
Files:	    src/screen.c
Karsten Hopp d6b3df
Karsten Hopp d6b3df
Karsten Hopp d6b3df
*** ../vim-7.4.681/src/screen.c	2015-03-21 14:20:11.520982748 +0100
Karsten Hopp d6b3df
--- src/screen.c	2015-03-24 18:17:07.201656819 +0100
Karsten Hopp d6b3df
***************
Karsten Hopp d6b3df
*** 4010,4026 ****
Karsten Hopp d6b3df
  
Karsten Hopp d6b3df
  	    /* Decide which of the highlight attributes to use. */
Karsten Hopp d6b3df
  	    attr_pri = TRUE;
Karsten Hopp d6b3df
  	    if (area_attr != 0)
Karsten Hopp d6b3df
! 		char_attr = area_attr;
Karsten Hopp d6b3df
  	    else if (search_attr != 0)
Karsten Hopp d6b3df
! 		char_attr = search_attr;
Karsten Hopp d6b3df
! #ifdef LINE_ATTR
Karsten Hopp d6b3df
  		/* Use line_attr when not in the Visual or 'incsearch' area
Karsten Hopp d6b3df
  		 * (area_attr may be 0 when "noinvcur" is set). */
Karsten Hopp d6b3df
  	    else if (line_attr != 0 && ((fromcol == -10 && tocol == MAXCOL)
Karsten Hopp d6b3df
  				|| vcol < fromcol || vcol_prev < fromcol_prev
Karsten Hopp d6b3df
  				|| vcol >= tocol))
Karsten Hopp d6b3df
  		char_attr = line_attr;
Karsten Hopp d6b3df
  #endif
Karsten Hopp d6b3df
  	    else
Karsten Hopp d6b3df
  	    {
Karsten Hopp d6b3df
--- 4010,4031 ----
Karsten Hopp d6b3df
  
Karsten Hopp d6b3df
  	    /* Decide which of the highlight attributes to use. */
Karsten Hopp d6b3df
  	    attr_pri = TRUE;
Karsten Hopp d6b3df
+ #ifdef LINE_ATTR
Karsten Hopp d6b3df
  	    if (area_attr != 0)
Karsten Hopp d6b3df
! 		char_attr = hl_combine_attr(line_attr, area_attr);
Karsten Hopp d6b3df
  	    else if (search_attr != 0)
Karsten Hopp d6b3df
! 		char_attr = hl_combine_attr(line_attr, search_attr);
Karsten Hopp d6b3df
  		/* Use line_attr when not in the Visual or 'incsearch' area
Karsten Hopp d6b3df
  		 * (area_attr may be 0 when "noinvcur" is set). */
Karsten Hopp d6b3df
  	    else if (line_attr != 0 && ((fromcol == -10 && tocol == MAXCOL)
Karsten Hopp d6b3df
  				|| vcol < fromcol || vcol_prev < fromcol_prev
Karsten Hopp d6b3df
  				|| vcol >= tocol))
Karsten Hopp d6b3df
  		char_attr = line_attr;
Karsten Hopp d6b3df
+ #else
Karsten Hopp d6b3df
+ 	    if (area_attr != 0)
Karsten Hopp d6b3df
+ 		char_attr = area_attr;
Karsten Hopp d6b3df
+ 	    else if (search_attr != 0)
Karsten Hopp d6b3df
+ 		char_attr = search_attr;
Karsten Hopp d6b3df
  #endif
Karsten Hopp d6b3df
  	    else
Karsten Hopp d6b3df
  	    {
Karsten Hopp d6b3df
*** ../vim-7.4.681/src/version.c	2015-03-24 17:57:06.210846471 +0100
Karsten Hopp d6b3df
--- src/version.c	2015-03-24 18:21:08.975018758 +0100
Karsten Hopp d6b3df
***************
Karsten Hopp d6b3df
*** 743,744 ****
Karsten Hopp d6b3df
--- 743,746 ----
Karsten Hopp d6b3df
  {   /* Add new patch number below this line */
Karsten Hopp d6b3df
+ /**/
Karsten Hopp d6b3df
+     682,
Karsten Hopp d6b3df
  /**/
Karsten Hopp d6b3df
Karsten Hopp d6b3df
-- 
Karsten Hopp d6b3df
The war between Emacs and Vi is over.  Vi has won with 3 to 1.
Karsten Hopp d6b3df
http://m.linuxjournal.com/files/linuxjournal.com/linuxjournal/articles/030/3044/3044s1.html
Karsten Hopp d6b3df
Karsten Hopp d6b3df
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp d6b3df
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp d6b3df
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp d6b3df
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///