changeset 5836:43c6cd07c8de v7.4.261

updated for version 7.4.261 Problem: When updating the window involves a regexp pattern, an interactive substitute to replace a "\n" with a line break fails. (Ingo Karkat) Solution: Set reg_line_lbr in vim_regsub() and vim_regsub_multi().
author Bram Moolenaar <bram@vim.org>
date Wed, 23 Apr 2014 18:48:47 +0200
parents 81784024a6ab
children b74d21ce03a9
files src/regexp.c src/testdir/test79.in src/testdir/test79.ok src/version.c
diffstat 4 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/regexp.c
+++ b/src/regexp.c
@@ -7381,6 +7381,7 @@ vim_regsub(rmp, source, dest, copy, magi
     reg_mmatch = NULL;
     reg_maxline = 0;
     reg_buf = curbuf;
+    reg_line_lbr = TRUE;
     return vim_regsub_both(source, dest, copy, magic, backslash);
 }
 #endif
@@ -7400,6 +7401,7 @@ vim_regsub_multi(rmp, lnum, source, dest
     reg_buf = curbuf;		/* always works on the current buffer! */
     reg_firstlnum = lnum;
     reg_maxline = curbuf->b_ml.ml_line_count - lnum;
+    reg_line_lbr = FALSE;
     return vim_regsub_both(source, dest, copy, magic, backslash);
 }
 
index 56955c23182a8809b9aa233afbc8f6d1148d07c1..8278bd80005bc3f7a985634b465f1af38391f171
GIT binary patch
literal 3381
zc%1E5&2!p15a+xzx#p}gO$@xmD*1rKZ#X32B#<<1639DrOU4)h4n`*aNZy-H`?ps{
zHX!!{a_H?1Gn)NLyQ|gy#A@AUK}ZIkPf9`5+x6MhwQRN<OquOiZi!gDudc9vr#=e;
z$Kxg9abk$IAauegWID7{Ut)4%h4!dWRCJbAN=C5t8xKZ6<c<y>66EB?2}gvu4riq2
zGi$5^+_g_`+iml%4MyORU}Cwh{_IS^yl%{9;g$uF8wSK1kWl!omJQX2g=At49b1a_
z)Y}Hyjn^nV8Ua0_+uKq)rI<){Ea+HVccAzVkMRhrSiwU)z<u1qvUJp-eJPmqn-tC{
zCek^@XgHMe1;x$?&5=Y+if*$h<rc-O7Md-IE`{D0*;t}0y15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=k4NEeBprQfgVd-zr)dicFE^}u1?%v^?
zv+$nQ?Y60<GLxFLZY;$CF!evCUo?%!kl`t+rW>YZk4Cm-8oH(`Sdfl*T;gek^)vDp
zyl${1eUpm20_C8@?q-Mm?H(1cP$xB-L4#S_&TyE|4}FX3K$hYD(Q^E!7R^D#BgCA?
zNJtA#;VI`xk?|_SlC<KW8rrRq^CHIvqO6P1`-m>#9B}fZv!C53Gk$pu`juC{F9?`>
zS+j5`1+0TDU<sH4hJY@h38(@J3&Xz6q??iw-1i%c`bjP+VBY5g3q2YpGz=v+VIduS
Tak%#M>4i5Ekd-CksJak8w9bc;
--- a/src/version.c
+++ b/src/version.c
@@ -735,6 +735,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    261,
+/**/
     260,
 /**/
     259,