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:
@@ -3326,7 +3326,8 @@ eval7t(
|
||||
: (evalarg->eval_flags & EVAL_EVALUATE);
|
||||
|
||||
// Recognize <type> in Vim9 script only.
|
||||
if (in_vim9script() && **arg == '<' && eval_isnamec1((*arg)[1]))
|
||||
if (in_vim9script() && **arg == '<' && eval_isnamec1((*arg)[1])
|
||||
&& STRNCMP(*arg, "<SNR>", 5) != 0)
|
||||
{
|
||||
++*arg;
|
||||
ga_init2(&type_list, sizeof(type_T *), 10);
|
||||
|
Reference in New Issue
Block a user