diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-12-15 15:41:44 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-15 15:41:44 +0000 |
commit | ce7eada12ea16c830332042f0021a9564bbb25af (patch) | |
tree | fce1a25ce1feba54a4f3e5154f3bd2200d133c20 /src/ex_docmd.c | |
parent | cfabad9bcf45650dee1f1f41ec4047f82a12f323 (diff) |
patch 8.2.3815: Vim9: cannot have a multi-line dict inside a blockv8.2.3815
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.
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index c06a508abf..5f52401192 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -2305,7 +2305,7 @@ do_one_cmd( // versions. if (*p == '\\' && p[1] == '\n') STRMOVE(p, p + 1); - else if (*p == '\n') + else if (*p == '\n' && (ea.argt & EX_TRLBAR)) { ea.nextcmd = p + 1; *p = NUL; |