Blame SOURCES/7.4.537

22c937
To: vim_dev@googlegroups.com
22c937
Subject: Patch 7.4.537
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.537
22c937
Problem:    Value of v:hlsearch reflects an internal variable.
22c937
Solution:   Make the value reflect whether search highlighting is actually
22c937
	    displayed. (Christian Brabandt)
22c937
Files:	    runtime/doc/eval.txt, src/testdir/test101.in,
22c937
	    src/testdir/test101.ok, src/vim.h
22c937
22c937
22c937
*** ../vim-7.4.536/runtime/doc/eval.txt	2014-11-05 18:05:48.652441306 +0100
22c937
--- runtime/doc/eval.txt	2014-11-27 19:05:43.646912096 +0100
22c937
***************
22c937
*** 1457,1466 ****
22c937
  		Read-only in the |sandbox|. |fold-foldtext|
22c937
  
22c937
  					*v:hlsearch* *hlsearch-variable*
22c937
! v:hlsearch	Variable that determines whether search highlighting is on. 
22c937
! 		Makes sense only if 'hlsearch' is enabled which requires 
22c937
! 		|+extra_search|. Setting this variable to zero acts the like 
22c937
! 		|:nohlsearch| command, setting it to one acts like >
22c937
  			let &hlsearch = &hlsearch
22c937
  <
22c937
  					*v:insertmode* *insertmode-variable*
22c937
--- 1457,1466 ----
22c937
  		Read-only in the |sandbox|. |fold-foldtext|
22c937
  
22c937
  					*v:hlsearch* *hlsearch-variable*
22c937
! v:hlsearch	Variable that indicates whether search highlighting is on. 
22c937
! 		Setting it makes sense only if 'hlsearch' is enabled which
22c937
! 		requires |+extra_search|. Setting this variable to zero acts
22c937
! 		the like |:nohlsearch| command, setting it to one acts like >
22c937
  			let &hlsearch = &hlsearch
22c937
  <
22c937
  					*v:insertmode* *insertmode-variable*
22c937
*** ../vim-7.4.536/src/testdir/test101.in	2013-11-08 04:30:06.000000000 +0100
22c937
--- src/testdir/test101.in	2014-11-27 19:07:09.509965031 +0100
22c937
***************
22c937
*** 25,30 ****
22c937
--- 25,33 ----
22c937
  :AddR
22c937
  /
22c937
  :AddR
22c937
+ :set nohls
22c937
+ /
22c937
+ :AddR
22c937
  :let r1=r[0][0]
22c937
  :" I guess it is not guaranteed that screenattr outputs always the same character
22c937
  :call map(r, 'v:val[1].":".(v:val[0]==r1?"highlighted":"not highlighted")')
22c937
*** ../vim-7.4.536/src/testdir/test101.ok	2013-11-08 04:30:06.000000000 +0100
22c937
--- src/testdir/test101.ok	2014-11-27 19:07:09.509965031 +0100
22c937
***************
22c937
*** 8,11 ****
22c937
--- 8,12 ----
22c937
  1:highlighted
22c937
  0:not highlighted
22c937
  1:highlighted
22c937
+ 0:not highlighted
22c937
  Vim(let):E706:
22c937
*** ../vim-7.4.536/src/vim.h	2014-08-29 12:58:38.246430208 +0200
22c937
--- src/vim.h	2014-11-27 19:07:09.509965031 +0100
22c937
***************
22c937
*** 1998,2004 ****
22c937
  
22c937
  #ifndef FEAT_VIRTUALEDIT
22c937
  # define getvvcol(w, p, s, c, e) getvcol(w, p, s, c, e)
22c937
! # define virtual_active() 0
22c937
  # define virtual_op FALSE
22c937
  #endif
22c937
  
22c937
--- 1998,2004 ----
22c937
  
22c937
  #ifndef FEAT_VIRTUALEDIT
22c937
  # define getvvcol(w, p, s, c, e) getvcol(w, p, s, c, e)
22c937
! # define virtual_active() FALSE
22c937
  # define virtual_op FALSE
22c937
  #endif
22c937
  
22c937
***************
22c937
*** 2277,2283 ****
22c937
  #define AUTOLOAD_CHAR '#'
22c937
  
22c937
  #ifdef FEAT_EVAL
22c937
! # define SET_NO_HLSEARCH(flag) no_hlsearch = (flag); set_vim_var_nr(VV_HLSEARCH, !no_hlsearch)
22c937
  #else
22c937
  # define SET_NO_HLSEARCH(flag) no_hlsearch = (flag)
22c937
  #endif
22c937
--- 2277,2283 ----
22c937
  #define AUTOLOAD_CHAR '#'
22c937
  
22c937
  #ifdef FEAT_EVAL
22c937
! # define SET_NO_HLSEARCH(flag) no_hlsearch = (flag); set_vim_var_nr(VV_HLSEARCH, !no_hlsearch && p_hls)
22c937
  #else
22c937
  # define SET_NO_HLSEARCH(flag) no_hlsearch = (flag)
22c937
  #endif
22c937
*** ../vim-7.4.536/src/version.c	2014-11-27 18:57:07.472605147 +0100
22c937
--- src/version.c	2014-11-27 19:07:39.973629032 +0100
22c937
***************
22c937
*** 743,744 ****
22c937
--- 743,746 ----
22c937
  {   /* Add new patch number below this line */
22c937
+ /**/
22c937
+     537,
22c937
  /**/
22c937
22c937
-- 
22c937
A M00se once bit my sister ...
22c937
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
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    ///