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:
@@ -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] == '{')
|
||||
|
Reference in New Issue
Block a user