summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-04-23 18:48:47 +0200
committerBram Moolenaar <Bram@vim.org>2014-04-23 18:48:47 +0200
commit93fc481b578b18c282e60d251455685602449526 (patch)
treeca5aa7e7fd8a343bf4357bc5cdc450ec2c7c5c0c
parent9bdfb0025cba78c7a917f7f9420fe00136918e1c (diff)
updated for version 7.4.261v7.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().
-rw-r--r--src/regexp.c2
-rw-r--r--src/testdir/test79.inbin3123 -> 3381 bytes
-rw-r--r--src/testdir/test79.okbin556 -> 574 bytes
-rw-r--r--src/version.c2
4 files changed, 4 insertions, 0 deletions
diff --git a/src/regexp.c b/src/regexp.c
index 2c364b30be..2023714e47 100644
--- a/src/regexp.c
+++ b/src/regexp.c
@@ -7381,6 +7381,7 @@ vim_regsub(rmp, source, dest, copy, magic, backslash)
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, copy, magic, backslash)
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);
}
diff --git a/src/testdir/test79.in b/src/testdir/test79.in
index 56955c2318..8278bd8000 100644
--- a/src/testdir/test79.in
+++ b/src/testdir/test79.in
Binary files differ
diff --git a/src/testdir/test79.ok b/src/testdir/test79.ok
index 0f6ea45451..e22eee0b71 100644
--- a/src/testdir/test79.ok
+++ b/src/testdir/test79.ok
Binary files differ
diff --git a/src/version.c b/src/version.c
index 1a112d7a48..8acd83e6a2 100644
--- 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,