home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.4 / 7.4.537 < prev    next >
Encoding:
Internet Message Format  |  2014-11-27  |  3.8 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.4.537
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.4.537
  11. Problem:    Value of v:hlsearch reflects an internal variable.
  12. Solution:   Make the value reflect whether search highlighting is actually
  13.         displayed. (Christian Brabandt)
  14. Files:        runtime/doc/eval.txt, src/testdir/test101.in,
  15.         src/testdir/test101.ok, src/vim.h
  16.  
  17.  
  18. *** ../vim-7.4.536/runtime/doc/eval.txt    2014-11-05 18:05:48.652441306 +0100
  19. --- runtime/doc/eval.txt    2014-11-27 19:05:43.646912096 +0100
  20. ***************
  21. *** 1457,1466 ****
  22.           Read-only in the |sandbox|. |fold-foldtext|
  23.   
  24.                       *v:hlsearch* *hlsearch-variable*
  25. ! v:hlsearch    Variable that determines whether search highlighting is on. 
  26. !         Makes sense only if 'hlsearch' is enabled which requires 
  27. !         |+extra_search|. Setting this variable to zero acts the like 
  28. !         |:nohlsearch| command, setting it to one acts like >
  29.               let &hlsearch = &hlsearch
  30.   <
  31.                       *v:insertmode* *insertmode-variable*
  32. --- 1457,1466 ----
  33.           Read-only in the |sandbox|. |fold-foldtext|
  34.   
  35.                       *v:hlsearch* *hlsearch-variable*
  36. ! v:hlsearch    Variable that indicates whether search highlighting is on. 
  37. !         Setting it makes sense only if 'hlsearch' is enabled which
  38. !         requires |+extra_search|. Setting this variable to zero acts
  39. !         the like |:nohlsearch| command, setting it to one acts like >
  40.               let &hlsearch = &hlsearch
  41.   <
  42.                       *v:insertmode* *insertmode-variable*
  43. *** ../vim-7.4.536/src/testdir/test101.in    2013-11-08 04:30:06.000000000 +0100
  44. --- src/testdir/test101.in    2014-11-27 19:07:09.509965031 +0100
  45. ***************
  46. *** 25,30 ****
  47. --- 25,33 ----
  48.   :AddR
  49.   /
  50.   :AddR
  51. + :set nohls
  52. + /
  53. + :AddR
  54.   :let r1=r[0][0]
  55.   :" I guess it is not guaranteed that screenattr outputs always the same character
  56.   :call map(r, 'v:val[1].":".(v:val[0]==r1?"highlighted":"not highlighted")')
  57. *** ../vim-7.4.536/src/testdir/test101.ok    2013-11-08 04:30:06.000000000 +0100
  58. --- src/testdir/test101.ok    2014-11-27 19:07:09.509965031 +0100
  59. ***************
  60. *** 8,11 ****
  61. --- 8,12 ----
  62.   1:highlighted
  63.   0:not highlighted
  64.   1:highlighted
  65. + 0:not highlighted
  66.   Vim(let):E706:
  67. *** ../vim-7.4.536/src/vim.h    2014-08-29 12:58:38.246430208 +0200
  68. --- src/vim.h    2014-11-27 19:07:09.509965031 +0100
  69. ***************
  70. *** 1998,2004 ****
  71.   
  72.   #ifndef FEAT_VIRTUALEDIT
  73.   # define getvvcol(w, p, s, c, e) getvcol(w, p, s, c, e)
  74. ! # define virtual_active() 0
  75.   # define virtual_op FALSE
  76.   #endif
  77.   
  78. --- 1998,2004 ----
  79.   
  80.   #ifndef FEAT_VIRTUALEDIT
  81.   # define getvvcol(w, p, s, c, e) getvcol(w, p, s, c, e)
  82. ! # define virtual_active() FALSE
  83.   # define virtual_op FALSE
  84.   #endif
  85.   
  86. ***************
  87. *** 2277,2283 ****
  88.   #define AUTOLOAD_CHAR '#'
  89.   
  90.   #ifdef FEAT_EVAL
  91. ! # define SET_NO_HLSEARCH(flag) no_hlsearch = (flag); set_vim_var_nr(VV_HLSEARCH, !no_hlsearch)
  92.   #else
  93.   # define SET_NO_HLSEARCH(flag) no_hlsearch = (flag)
  94.   #endif
  95. --- 2277,2283 ----
  96.   #define AUTOLOAD_CHAR '#'
  97.   
  98.   #ifdef FEAT_EVAL
  99. ! # define SET_NO_HLSEARCH(flag) no_hlsearch = (flag); set_vim_var_nr(VV_HLSEARCH, !no_hlsearch && p_hls)
  100.   #else
  101.   # define SET_NO_HLSEARCH(flag) no_hlsearch = (flag)
  102.   #endif
  103. *** ../vim-7.4.536/src/version.c    2014-11-27 18:57:07.472605147 +0100
  104. --- src/version.c    2014-11-27 19:07:39.973629032 +0100
  105. ***************
  106. *** 743,744 ****
  107. --- 743,746 ----
  108.   {   /* Add new patch number below this line */
  109. + /**/
  110. +     537,
  111.   /**/
  112.  
  113. -- 
  114. A M00se once bit my sister ...
  115.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  116.  
  117.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  118. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  119. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  120.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  121.