Mercurial > vim
diff src/userfunc.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 | 517fca70e084 |
children | 42294d4d4f6e |
line wrap: on
line diff
--- a/src/userfunc.c +++ b/src/userfunc.c @@ -3292,7 +3292,7 @@ define_function(exarg_T *eap, char_u *na nesting = 0; nesting_def[nesting] = (eap->cmdidx == CMD_def); getline_options = eap->cmdidx == CMD_def - ? GETLINE_CONCAT_CONTDEF : GETLINE_CONCAT_CONT; + ? GETLINE_CONCAT_CONTBAR : GETLINE_CONCAT_CONT; for (;;) { if (KeyTyped) @@ -3368,7 +3368,7 @@ define_function(exarg_T *eap, char_u *na VIM_CLEAR(skip_until); VIM_CLEAR(heredoc_trimmed); getline_options = eap->cmdidx == CMD_def - ? GETLINE_CONCAT_CONTDEF : GETLINE_CONCAT_CONT; + ? GETLINE_CONCAT_CONTBAR : GETLINE_CONCAT_CONT; is_heredoc = FALSE; } }