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.155 < prev    next >
Encoding:
Internet Message Format  |  2014-01-13  |  2.2 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.4.155
  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.155
  11. Problem:    ":keeppatterns /pat" does not keep search pattern offset.
  12. Solution:   Restore the offset after doing the search.
  13. Files:        src/search.c, src/testdir/test14.in, src/testdir/test14.ok
  14.  
  15.  
  16. *** ../vim-7.4.154/src/search.c    2014-01-14 15:53:47.000000000 +0100
  17. --- src/search.c    2014-01-14 21:27:32.000000000 +0100
  18. ***************
  19. *** 1437,1443 ****
  20.       curwin->w_set_curswant = TRUE;
  21.   
  22.   end_do_search:
  23. !     if (options & SEARCH_KEEP)
  24.       spats[0].off = old_off;
  25.       vim_free(strcopy);
  26.   
  27. --- 1437,1443 ----
  28.       curwin->w_set_curswant = TRUE;
  29.   
  30.   end_do_search:
  31. !     if ((options & SEARCH_KEEP) || cmdmod.keeppatterns)
  32.       spats[0].off = old_off;
  33.       vim_free(strcopy);
  34.   
  35. *** ../vim-7.4.154/src/testdir/test14.in    2014-01-14 15:53:47.000000000 +0100
  36. --- src/testdir/test14.in    2014-01-14 21:13:39.000000000 +0100
  37. ***************
  38. *** 56,62 ****
  39.   :$put =@/
  40.   /^substitute
  41.   Y:$put =@0
  42. ! :/^search()/,$w >>test.out
  43.   :qa!
  44.   ENDTEST
  45.   
  46. --- 56,65 ----
  47.   :$put =@/
  48.   /^substitute
  49.   Y:$put =@0
  50. ! /bar /e
  51. ! :$put =@0
  52. ! -:keeppatterns /xyz
  53. ! 0dn:/^search()/,$w >>test.out
  54.   :qa!
  55.   ENDTEST
  56.   
  57. *** ../vim-7.4.154/src/testdir/test14.ok    2014-01-14 15:53:47.000000000 +0100
  58. --- src/testdir/test14.ok    2014-01-14 21:16:23.000000000 +0100
  59. ***************
  60. *** 23,25 ****
  61. --- 23,26 ----
  62.   foo
  63.   ^substitute
  64.   substitute bar xyz
  65. + xyz
  66. *** ../vim-7.4.154/src/version.c    2014-01-14 19:44:30.000000000 +0100
  67. --- src/version.c    2014-01-14 21:28:24.000000000 +0100
  68. ***************
  69. *** 740,741 ****
  70. --- 740,743 ----
  71.   {   /* Add new patch number below this line */
  72. + /**/
  73. +     155,
  74.   /**/
  75.  
  76. -- 
  77. hundred-and-one symptoms of being an internet addict:
  78. 164. You got out to buy software, instead of going out for a beer.
  79.  
  80.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  81. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  82. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  83.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  84.