summaryrefslogtreecommitdiff
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 048c22436..cbf75059e 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -1204,7 +1204,8 @@ do_cmdline(
* In Vim9 script do not give a second error, executing aborts after
* the first one.
*/
- if (!got_int && !did_throw && !(did_emsg && in_vim9script())
+ if (!got_int && !did_throw && !aborting()
+ && !(did_emsg && in_vim9script())
&& ((getline_equal(fgetline, cookie, getsourceline)
&& !source_finished(fgetline, cookie))
|| (getline_equal(fgetline, cookie, get_func_line)