Blame SOURCES/7.4.150

22c937
To: vim_dev@googlegroups.com
22c937
Subject: Patch 7.4.150
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.150
22c937
Problem:    :keeppatterns is not respected for :s.
22c937
Solution:   Check the keeppatterns flag. (Yasuhiro Matsumoto)
22c937
Files:	    src/search.c, src/testdir/test14.in, src/testdir/test14.ok
22c937
22c937
22c937
*** ../vim-7.4.149/src/search.c	2013-11-28 19:27:18.000000000 +0100
22c937
--- src/search.c	2014-01-14 15:44:33.000000000 +0100
22c937
***************
22c937
*** 201,207 ****
22c937
       * Save the currently used pattern in the appropriate place,
22c937
       * unless the pattern should not be remembered.
22c937
       */
22c937
!     if (!(options & SEARCH_KEEP))
22c937
      {
22c937
  	/* search or global command */
22c937
  	if (pat_save == RE_SEARCH || pat_save == RE_BOTH)
22c937
--- 201,207 ----
22c937
       * Save the currently used pattern in the appropriate place,
22c937
       * unless the pattern should not be remembered.
22c937
       */
22c937
!     if (!(options & SEARCH_KEEP) && !cmdmod.keeppatterns)
22c937
      {
22c937
  	/* search or global command */
22c937
  	if (pat_save == RE_SEARCH || pat_save == RE_BOTH)
22c937
*** ../vim-7.4.149/src/testdir/test14.in	2013-04-03 20:59:14.000000000 +0200
22c937
--- src/testdir/test14.in	2014-01-14 15:43:28.000000000 +0100
22c937
***************
22c937
*** 47,52 ****
22c937
--- 47,61 ----
22c937
  /two
22c937
  :call search('.', 'c')
22c937
  :call append(line('$'), getline('.')[col('.') - 1:])
22c937
+ :"
22c937
+ /^substitute
22c937
+ :s/foo/bar/
22c937
+ :$put =@/
22c937
+ /^substitute
22c937
+ :keeppatterns s/asdf/xyz/
22c937
+ :$put =@/
22c937
+ /^substitute
22c937
+ Y:$put =@0
22c937
  :/^search()/,$w >>test.out
22c937
  :qa!
22c937
  ENDTEST
22c937
***************
22c937
*** 81,86 ****
22c937
--- 90,96 ----
22c937
  
22c937
  foobar
22c937
  
22c937
+ substitute foo asdf
22c937
  
22c937
  one two
22c937
  search()
22c937
*** ../vim-7.4.149/src/testdir/test14.ok	2013-04-03 20:59:14.000000000 +0200
22c937
--- src/testdir/test14.ok	2014-01-14 15:46:42.000000000 +0100
22c937
***************
22c937
*** 20,22 ****
22c937
--- 20,25 ----
22c937
  1
22c937
  1
22c937
  two
22c937
+ foo
22c937
+ ^substitute
22c937
+ substitute bar xyz
22c937
*** ../vim-7.4.149/src/version.c	2014-01-14 15:24:24.000000000 +0100
22c937
--- src/version.c	2014-01-14 15:45:34.000000000 +0100
22c937
***************
22c937
*** 740,741 ****
22c937
--- 740,743 ----
22c937
  {   /* Add new patch number below this line */
22c937
+ /**/
22c937
+     150,
22c937
  /**/
22c937
22c937
-- 
22c937
hundred-and-one symptoms of being an internet addict:
22c937
158. You get a tuner card so you can watch TV while surfing.
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    ///