summaryrefslogtreecommitdiff
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-12-29 11:15:01 +0100
committerBram Moolenaar <Bram@vim.org>2020-12-29 11:15:01 +0100
commit8242ebbdba64cfa5c504c9d8dfb802076d99c602 (patch)
treeb5a016fbb3e636ca8ce0488d227d21f94be36ded /src/ex_docmd.c
parent864a28b6a6ae4f1a56e230be26bc6d13e3f8b3d9 (diff)
downloadvim-git-8242ebbdba64cfa5c504c9d8dfb802076d99c602.tar.gz
patch 8.2.2242: Vim9: bar line continuation does not work at script levelv8.2.2242
Problem: Vim9: line continuation with bar does not work at script level. Solution: Check for Vim9 script.
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 91d56d71f..dc9ea165f 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -889,7 +889,8 @@ do_cmdline(
#else
0
#endif
- , TRUE)) == NULL)
+ , in_vim9script() ? GETLINE_CONCAT_CONTBAR
+ : GETLINE_CONCAT_CONT)) == NULL)
{
// Don't call wait_return for aborted command line. The NULL
// returned for the end of a sourced file or executed function