vim-patch:8.1.1491: fix skipping after exception #10164

Problem:    When skipping over code after an exception was thrown expression
            evaluation is aborted after a function call. (Ingo Karkat)
Solution:   Do not fail if not executing the expression. (closes vim/vim#4507)
6064073841
This commit is contained in:
Daniel Hahler
2019-06-08 19:57:54 +02:00
committed by Justin M. Keyes
parent b398b1eedd
commit 3dd31b2b65
2 changed files with 10 additions and 1 deletions

View File

@@ -4284,7 +4284,7 @@ static int eval7(
// Stop the expression evaluation when immediately
// aborting on error, or when an interrupt occurred or
// an exception was thrown but not caught.
if (aborting()) {
if (evaluate && aborting()) {
if (ret == OK) {
tv_clear(rettv);
}