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