Mercurial > vim
comparison src/ex_docmd.c @ 23398:40f824f5c7c7 v8.2.2242
patch 8.2.2242: Vim9: bar line continuation does not work at script level
Commit: https://github.com/vim/vim/commit/8242ebbdba64cfa5c504c9d8dfb802076d99c602
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Dec 29 11:15:01 2020 +0100
patch 8.2.2242: Vim9: bar line continuation does not work at script level
Problem: Vim9: line continuation with bar does not work at script level.
Solution: Check for Vim9 script.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 29 Dec 2020 11:15:34 +0100 |
parents | 9a5f12b36273 |
children | bb29b09902d5 |
comparison
equal
deleted
inserted
replaced
23397:0a99720fc406 | 23398:40f824f5c7c7 |
---|---|
887 #ifdef FEAT_EVAL | 887 #ifdef FEAT_EVAL |
888 cstack.cs_idx < 0 ? 0 : (cstack.cs_idx + 1) * 2 | 888 cstack.cs_idx < 0 ? 0 : (cstack.cs_idx + 1) * 2 |
889 #else | 889 #else |
890 0 | 890 0 |
891 #endif | 891 #endif |
892 , TRUE)) == NULL) | 892 , in_vim9script() ? GETLINE_CONCAT_CONTBAR |
893 : GETLINE_CONCAT_CONT)) == NULL) | |
893 { | 894 { |
894 // Don't call wait_return for aborted command line. The NULL | 895 // Don't call wait_return for aborted command line. The NULL |
895 // returned for the end of a sourced file or executed function | 896 // returned for the end of a sourced file or executed function |
896 // doesn't do this. | 897 // doesn't do this. |
897 if (KeyTyped && !(flags & DOCMD_REPEAT)) | 898 if (KeyTyped && !(flags & DOCMD_REPEAT)) |