summaryrefslogtreecommitdiff
path: root/src/vim9execute.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-02-12 14:23:17 +0000
committerBram Moolenaar <Bram@vim.org>2022-02-12 14:23:17 +0000
commit90a57168a42048eb7e176a4f9acf607c31e8074f (patch)
tree1997add63d75232b28f2329994aef53a4eabf0a7 /src/vim9execute.c
parent2a9b62dfa2fb91a6ede9cb4d146ca47a1db31254 (diff)
downloadvim-git-90a57168a42048eb7e176a4f9acf607c31e8074f.tar.gz
patch 8.2.4358: Vim9: line number of exception is not setv8.2.4358
Problem: Vim9: line number of exception is not set. Solution: Set the line number before throwing an exception. (closes #9755)
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 1412d0836..f6456d64b 100644
--- a/src/vim9execute.c
+++ b/src/vim9execute.c
@@ -3826,6 +3826,7 @@ exec_instructions(ectx_T *ectx)
}
}
+ SOURCING_LNUM = iptr->isn_lnum;
if (throw_exception(tv->vval.v_string, ET_USER, NULL)
== FAIL)
{