summaryrefslogtreecommitdiffstats
path: root/src/ex_eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-09-10 19:25:05 +0200
committerBram Moolenaar <Bram@vim.org>2020-09-10 19:25:05 +0200
commit4f25b1aba050b85fa97ca2316aa04dd4b0b22530 (patch)
tree9f051b3953c6eb88e6d5fc1cc5728d348fe626b3 /src/ex_eval.c
parenta953b5cf4f291875b805262eebd361e502de8c92 (diff)
patch 8.2.1653: expand('<stack>') does not include the final line numberv8.2.1653
Problem: Expand('<stack>') does not include the final line number. Solution: Add the line nuber. (closes #6927)
Diffstat (limited to 'src/ex_eval.c')
-rw-r--r--src/ex_eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ex_eval.c b/src/ex_eval.c
index 58088a0706..cbdf82e893 100644
--- a/src/ex_eval.c
+++ b/src/ex_eval.c
@@ -290,7 +290,7 @@ cause_errthrow(
// Get the source name and lnum now, it may change before
// reaching do_errthrow().
- elem->sfile = estack_sfile(FALSE);
+ elem->sfile = estack_sfile(ESTACK_NONE);
elem->slnum = SOURCING_LNUM;
}
}
@@ -549,7 +549,7 @@ throw_exception(void *value, except_type_T type, char_u *cmdname)
}
else
{
- excp->throw_name = estack_sfile(FALSE);
+ excp->throw_name = estack_sfile(ESTACK_NONE);
if (excp->throw_name == NULL)
excp->throw_name = vim_strsave((char_u *)"");
if (excp->throw_name == NULL)