diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-08-14 07:07:32 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-08-15 10:14:53 +0800 |
commit | ed65724e57d2af13cedc380ecfe4a495dae3afb7 (patch) | |
tree | 377f8659f94e379c12e3db944680375aeed2ef3c /src/nvim/ex_eval.c | |
parent | 98ab0bb5f7d2138be0b6019769e237e42aafad1a (diff) | |
download | rneovim-ed65724e57d2af13cedc380ecfe4a495dae3afb7.tar.gz rneovim-ed65724e57d2af13cedc380ecfe4a495dae3afb7.tar.bz2 rneovim-ed65724e57d2af13cedc380ecfe4a495dae3afb7.zip |
vim-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 vim/vim#6927)
https://github.com/vim/vim/commit/4f25b1aba050b85fa97ca2316aa04dd4b0b22530
Diffstat (limited to 'src/nvim/ex_eval.c')
-rw-r--r-- | src/nvim/ex_eval.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ex_eval.c b/src/nvim/ex_eval.c index 61456acc2a..c39bb16498 100644 --- a/src/nvim/ex_eval.c +++ b/src/nvim/ex_eval.c @@ -278,7 +278,7 @@ bool cause_errthrow(const char *mesg, bool severe, bool *ignore) // 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; } return true; @@ -490,7 +490,7 @@ static int throw_exception(void *value, except_type_T type, char *cmdname) entry->sfile = NULL; excp->throw_lnum = entry->slnum; } else { - excp->throw_name = estack_sfile(false); + excp->throw_name = estack_sfile(ESTACK_NONE); if (excp->throw_name == NULL) { excp->throw_name = xstrdup(""); } |