mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.3224: cannot call script-local function after :vim9cmd
Problem: Cannot call script-local function after :vim9cmd. (Christian J. Robinson) Solution: Skip over "<SNR>123".
This commit is contained in:
@@ -3562,14 +3562,18 @@ to_name_end(char_u *arg, int use_namespace)
|
||||
|
||||
/*
|
||||
* Like to_name_end() but also skip over a list or dict constant.
|
||||
* Also accept "<SNR>123_Func".
|
||||
* This intentionally does not handle line continuation.
|
||||
*/
|
||||
char_u *
|
||||
to_name_const_end(char_u *arg)
|
||||
{
|
||||
char_u *p = to_name_end(arg, TRUE);
|
||||
char_u *p = arg;
|
||||
typval_T rettv;
|
||||
|
||||
if (STRNCMP(p, "<SNR>", 5) == 0)
|
||||
p = skipdigits(p + 5);
|
||||
p = to_name_end(p, TRUE);
|
||||
if (p == arg && *arg == '[')
|
||||
{
|
||||
|
||||
|
Reference in New Issue
Block a user