diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-08-14 06:32:00 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-08-15 10:14:52 +0800 |
commit | 98ab0bb5f7d2138be0b6019769e237e42aafad1a (patch) | |
tree | 6899f42d0caeed8cd23a386669b3adf40d987989 /src/nvim/ex_eval.c | |
parent | 1c164689a4ef243be2a0e1b4332c9b6c56b5b031 (diff) | |
download | rneovim-98ab0bb5f7d2138be0b6019769e237e42aafad1a.tar.gz rneovim-98ab0bb5f7d2138be0b6019769e237e42aafad1a.tar.bz2 rneovim-98ab0bb5f7d2138be0b6019769e237e42aafad1a.zip |
vim-patch:8.2.1297: when a test fails it's often not easy to see where
Problem: When a test fails it's often not easy to see what the call stack
is.
Solution: Add more entries from the call stack in the exception message.
https://github.com/vim/vim/commit/a5d0423fa16f18b4576a2a07e50034e489587a7d
Use docs from latest Vim.
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 66c782d12e..61456acc2a 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(); + elem->sfile = estack_sfile(false); 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(); + excp->throw_name = estack_sfile(false); if (excp->throw_name == NULL) { excp->throw_name = xstrdup(""); } |