comparison src/ex_docmd.c @ 26572:9f7568104726 v8.2.3815

patch 8.2.3815: Vim9: cannot have a multi-line dict inside a block Commit: https://github.com/vim/vim/commit/ce7eada12ea16c830332042f0021a9564bbb25af Author: Bram Moolenaar <Bram@vim.org> Date: Wed Dec 15 15:41:44 2021 +0000 patch 8.2.3815: Vim9: cannot have a multi-line dict inside a block Problem: Vim9: cannot have a multi-line dict inside a block. Solution: Do not split the command at a line break, handle NL characters as white space.
author Bram Moolenaar <Bram@vim.org>
date Wed, 15 Dec 2021 16:45:03 +0100
parents c675779d5f2b
children 5ea6db641b5e
comparison
equal deleted inserted replaced
26571:696b10f0898a 26572:9f7568104726
2303 // command in a backslash, but that doesn't appear useful. 2303 // command in a backslash, but that doesn't appear useful.
2304 // Halving the number of backslashes is incompatible with previous 2304 // Halving the number of backslashes is incompatible with previous
2305 // versions. 2305 // versions.
2306 if (*p == '\\' && p[1] == '\n') 2306 if (*p == '\\' && p[1] == '\n')
2307 STRMOVE(p, p + 1); 2307 STRMOVE(p, p + 1);
2308 else if (*p == '\n') 2308 else if (*p == '\n' && (ea.argt & EX_TRLBAR))
2309 { 2309 {
2310 ea.nextcmd = p + 1; 2310 ea.nextcmd = p + 1;
2311 *p = NUL; 2311 *p = NUL;
2312 break; 2312 break;
2313 } 2313 }