summaryrefslogtreecommitdiff
path: root/src/vim9execute.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-02-19 17:06:11 +0100
committerBram Moolenaar <Bram@vim.org>2020-02-19 17:06:11 +0100
commit257cc5ee9593cd0653beca8b5945dc7fbf7f2d8d (patch)
treedcbecc0c8309f33837bad940e9665b3f703ffc28 /src/vim9execute.c
parent63ce4849efa54d3980446ad337d0e1248ec86182 (diff)
downloadvim-git-257cc5ee9593cd0653beca8b5945dc7fbf7f2d8d.tar.gz
patch 8.2.0280: Vim9: throw in :def function not caught higher upv8.2.0280
Problem: Vim9: throw in :def function not caught higher up. Solution: Set "need_rethrow".
Diffstat (limited to 'src/vim9execute.c')
-rw-r--r--src/vim9execute.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vim9execute.c b/src/vim9execute.c
index 455574811..4349489e5 100644
--- a/src/vim9execute.c
+++ b/src/vim9execute.c
@@ -482,6 +482,7 @@ call_def_function(
tv->v_type = VAR_NUMBER;
tv->vval.v_number = 0;
++ectx.ec_stack.ga_len;
+ need_rethrow = TRUE;
goto done;
}