diff src/eval.c @ 25374:7124992f26ef v8.2.3224

patch 8.2.3224: cannot call script-local function after :vim9cmd Commit: https://github.com/vim/vim/commit/678b207fb111840fec1f0dc43910613ba106b90d Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jul 26 21:10:11 2021 +0200 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".
author Bram Moolenaar <Bram@vim.org>
date Mon, 26 Jul 2021 21:15:06 +0200
parents f03271631eb5
children e8e2c4d33b9b
line wrap: on
line diff
--- a/src/eval.c
+++ b/src/eval.c
@@ -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);