diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-07-18 17:49:03 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-07-18 17:49:03 +0100 |
commit | bd683e3a79d73e608fec0df7cee1109a27f2e70a (patch) | |
tree | 1775b13a919531764de59daddc348be447e246d7 /src/vim9execute.c | |
parent | fa49eb482729a5fe7da9c9a5ed8d14f68afa55c7 (diff) | |
download | vim-git-bd683e3a79d73e608fec0df7cee1109a27f2e70a.tar.gz |
patch 9.0.0056: wrong line number reported when :cexpr fails in :def function
Problem: Wrong line number reported when :cexpr fails in :def function.
Solution: Set line_number before executing :cexpr. (closes #10735)
Diffstat (limited to 'src/vim9execute.c')
-rw-r--r-- | src/vim9execute.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vim9execute.c b/src/vim9execute.c index 9dd5937e4..2f94f05c5 100644 --- a/src/vim9execute.c +++ b/src/vim9execute.c @@ -2786,6 +2786,7 @@ exec_instructions(ectx_T *ectx) ea.cmdlinep = &iptr->isn_arg.cexpr.cexpr_ref->cer_cmdline; --ectx->ec_stack.ga_len; tv = STACK_TV_BOT(0); + SOURCING_LNUM = iptr->isn_lnum; res = cexpr_core(&ea, tv); clear_tv(tv); if (res == FAIL) |