summaryrefslogtreecommitdiff
path: root/src/eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-07-26 21:10:11 +0200
committerBram Moolenaar <Bram@vim.org>2021-07-26 21:10:11 +0200
commit678b207fb111840fec1f0dc43910613ba106b90d (patch)
treec897c4e8f66da66dac4c1dec63b677038b48b19e /src/eval.c
parentff34bee3a2d22f2ff7abd4519270b5518082c33d (diff)
downloadvim-git-678b207fb111840fec1f0dc43910613ba106b90d.tar.gz
patch 8.2.3224: cannot call script-local function after :vim9cmdv8.2.3224
Problem: Cannot call script-local function after :vim9cmd. (Christian J. Robinson) Solution: Skip over "<SNR>123".
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c
index fc2266225..8050bbbbe 100644
--- 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);