0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.1065: Vim9: no line break allowed inside a list

Problem:    Vim9: no line break allowed inside a list.
Solution:   Handle line break inside a list in Vim9 script.
This commit is contained in:
Bram Moolenaar
2020-06-26 22:46:27 +02:00
parent e6536aa766
commit 7147820cb9
8 changed files with 69 additions and 30 deletions

View File

@@ -2989,7 +2989,7 @@ to_name_const_end(char_u *arg)
{
// Can be "[1, 2, 3]->Func()".
if (get_list_tv(&p, &rettv, 0, FALSE) == FAIL)
if (get_list_tv(&p, &rettv, NULL, FALSE) == FAIL)
p = arg;
}
else if (p == arg && *arg == '#' && arg[1] == '{')