Skip to content
Snippets Groups Projects
Commit 6019078e authored by Bram Moolenaar's avatar Bram Moolenaar
Browse files

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.
parent 7a329911
No related branches found
No related tags found
No related merge requests found
......@@ -6974,6 +6974,13 @@ vim_regsub_both(source, dest, copy, magic, backslash)
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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment