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