mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 09:18:19 +00:00
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)
4f25b1aba0
This commit is contained in:
@@ -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("");
|
||||
}
|
||||
|
Reference in New Issue
Block a user