mirror of
https://github.com/neovim/neovim.git
synced 2025-09-11 22:08:18 +00:00
vim-patch:8.2.3416: second error is reported while exception is being thrown
Problem: Second error is reported while exception is being thrown.
Solution: Do not check for trailing characters when already aborting.
(closes vim/vim#8842)
36f691f5f1
This commit is contained in:
@@ -3018,7 +3018,7 @@ void ex_call(exarg_T *eap)
|
||||
}
|
||||
|
||||
// When inside :try we need to check for following "| catch".
|
||||
if (!failed || eap->cstack->cs_trylevel > 0) {
|
||||
if (!aborting() && (!failed || eap->cstack->cs_trylevel > 0)) {
|
||||
// Check for trailing illegal characters and a following command.
|
||||
if (!ends_excmd(*arg)) {
|
||||
if (!failed) {
|
||||
|
Reference in New Issue
Block a user