You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That is, we can get one member from a list with something like [123], but not an arbitrary sublist with possibly several members with something like [12:34].
Describe the bug
List slicing doesn't work in a
:def
function.To Reproduce
Run this shell command:
Vim prints this message:
Now, run this shell command:
E111
is raised:Expected behavior
In the first command, Vim prints this message:
In the second command, no error is raised, and Vim prints this message:
Environment
Additional context
List slicing works as expected in a Vim9 script, provided it's used outside a
:def
function:The text was updated successfully, but these errors were encountered: