updated for version 7.2.437
Problem: When "\\\n" appears in the expression result the \n doesn't result
in a line break. (Andy Wokula)
Solution: Also replace a \n after a backslash into \r.
diff --git a/src/regexp.c b/src/regexp.c
index 216bf3a..5355945 100644
--- a/src/regexp.c
+++ b/src/regexp.c
@@ -6974,6 +6974,13 @@
else if (*s == '\\' && s[1] != NUL)
{
++s;
+ /* Change NL to CR here too, so that this works:
+ * :s/abc\\\ndef/\="aaa\\\nbbb"/ on text:
+ * abc\
+ * def
+ */
+ if (*s == NL)
+ *s = CAR;
had_backslash = TRUE;
}
}
diff --git a/src/version.c b/src/version.c
index 103e043..7a0642a 100644
--- a/src/version.c
+++ b/src/version.c
@@ -682,6 +682,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 437,
+/**/
436,
/**/
435,