mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 01:08:20 +00:00
vim-patch:8.0.1423: error in return not caught by try/catch
Problem: Error in return not caught by try/catch.
Solution: Call update_force_abort(). (Yasuhiro Matsomoto, closes vim/vim#2483)
fabaf753e2
This commit is contained in:
@@ -21800,6 +21800,9 @@ void ex_return(exarg_T *eap)
|
||||
}
|
||||
/* It's safer to return also on error. */
|
||||
else if (!eap->skip) {
|
||||
// In return statement, cause_abort should be force_abort.
|
||||
update_force_abort();
|
||||
|
||||
/*
|
||||
* Return unless the expression evaluation has been cancelled due to an
|
||||
* aborting error, an interrupt, or an exception.
|
||||
|
Reference in New Issue
Block a user