diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-12-15 17:53:40 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-15 17:53:40 +0000 |
commit | f87dac04c351583241ea1c4ec4228516431e6f22 (patch) | |
tree | 4e864b4a90588f717836f0b34cd6e628e3c1d3c5 /src/ex_docmd.c | |
parent | 1821d1498ca57dc3f7a21767c253a778d9b113fb (diff) |
patch 8.2.3817: Vim9: Not using NL as command end does not work for :autocmdv8.2.3817
Problem: Vim9: Not using NL as command end does not work for :autocmd.
Solution: Only ignore NL for commands with an expression argument.
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 5f52401192..ab0a146fba 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' && (ea.argt & EX_TRLBAR)) + else if (*p == '\n' && !(ea.argt & EX_EXPR_ARG)) { ea.nextcmd = p + 1; *p = NUL; |