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.261 < prev    next >
Encoding:
Internet Message Format  |  2014-04-22  |  2.8 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.4.261
  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.261
  11. Problem:    When updating the window involves a regexp pattern, an interactive
  12.         substitute to replace a "\n" with a line break fails. (Ingo
  13.         Karkat)
  14. Solution:   Set reg_line_lbr in vim_regsub() and vim_regsub_multi().
  15. Files:        src/regexp.c, src/testdir/test79.in, src/testdir/test79.ok
  16.  
  17.  
  18. *** ../vim-7.4.260/src/regexp.c    2014-04-06 21:33:39.671363743 +0200
  19. --- src/regexp.c    2014-04-23 18:40:37.094866280 +0200
  20. ***************
  21. *** 7381,7386 ****
  22. --- 7381,7387 ----
  23.       reg_mmatch = NULL;
  24.       reg_maxline = 0;
  25.       reg_buf = curbuf;
  26. +     reg_line_lbr = TRUE;
  27.       return vim_regsub_both(source, dest, copy, magic, backslash);
  28.   }
  29.   #endif
  30. ***************
  31. *** 7400,7405 ****
  32. --- 7401,7407 ----
  33.       reg_buf = curbuf;        /* always works on the current buffer! */
  34.       reg_firstlnum = lnum;
  35.       reg_maxline = curbuf->b_ml.ml_line_count - lnum;
  36. +     reg_line_lbr = FALSE;
  37.       return vim_regsub_both(source, dest, copy, magic, backslash);
  38.   }
  39.   
  40. *** ../vim-7.4.260/src/testdir/test79.in    2014-04-02 19:00:53.043644100 +0200
  41. --- src/testdir/test79.in    2014-04-23 18:36:29.158872254 +0200
  42. ***************
  43. *** 1,6 ****
  44. --- 1,7 ----
  45.   Test for *sub-replace-special* and *sub-replace-expression* on :substitute.
  46.   Test for submatch() on :substitue.
  47.   Test for *:s%* on :substitute.
  48. + Test for :s replacing \n with  line break.
  49.   
  50.   STARTTEST
  51.   :so small.vim
  52. ***************
  53. *** 234,239 ****
  54. --- 235,254 ----
  55.   Q
  56.   
  57.   STARTTEST
  58. + :function! TitleString()
  59. +   let check = 'foo' =~ 'bar'
  60. +   return ""
  61. + endfunction
  62. + :set titlestring=%{TitleString()}
  63. + :/^test_one/s/.*/\="foo\nbar"/
  64. + :/^test_two/s/.*/\="foo\nbar"/c
  65. + y
  66. + ENDTEST
  67. + test_one
  68. + test_two
  69. + STARTTEST
  70.   :g/^STARTTEST/.,/^ENDTEST/d
  71.   :1;/^Results/,$wq! test.out
  72.   :call getchar()
  73. *** ../vim-7.4.260/src/testdir/test79.ok    2014-04-02 19:00:53.043644100 +0200
  74. --- src/testdir/test79.ok    2014-04-23 18:35:30.650873664 +0200
  75. ***************
  76. *** 126,128 ****
  77. --- 126,134 ----
  78.   Q
  79.   Q
  80.   
  81. + foo
  82. + bar
  83. + foo
  84. + bar
  85. *** ../vim-7.4.260/src/version.c    2014-04-23 17:43:37.366948683 +0200
  86. --- src/version.c    2014-04-23 18:46:45.250857408 +0200
  87. ***************
  88. *** 736,737 ****
  89. --- 736,739 ----
  90.   {   /* Add new patch number below this line */
  91. + /**/
  92. +     261,
  93.   /**/
  94.  
  95. -- 
  96. From "know your smileys":
  97.  !-|    I-am-a-Cylon-Centurian-with-one-red-eye-bouncing-back-and-forth
  98.  
  99.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  100. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  101. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  102.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  103.