0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.0700: Vim9: converting error message to exception not tested

Problem:    Vim9: converting error message to exception not tested.
Solution:   Test exception from error.  Do not continue after :echoerr.
This commit is contained in:
Bram Moolenaar
2020-05-05 22:08:26 +02:00
parent 015f4267f4
commit 40ee466c36
3 changed files with 21 additions and 7 deletions

View File

@@ -898,14 +898,8 @@ call_def_function(
}
else
{
int save_did_emsg = did_emsg;
SOURCING_LNUM = iptr->isn_lnum;
emsg(ga.ga_data);
if (!force_abort)
// We don't want to abort following
// commands, restore did_emsg.
did_emsg = save_did_emsg;
}
}
}