patch 8.2.1653: expand('<stack>') does not include the final line number
Problem: Expand('<stack>') does not include the final line number.
Solution: Add the line nuber. (closes #6927)
diff --git a/src/ex_eval.c b/src/ex_eval.c
index 58088a0..cbdf82e 100644
--- a/src/ex_eval.c
+++ b/src/ex_eval.c
@@ -290,7 +290,7 @@
// 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 @@
}
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)