diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-05-27 13:52:08 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-05-27 13:52:08 +0100 |
commit | bf79a4e48d09a5ae08645592885d54230fed30b8 (patch) | |
tree | c8f23736de29ca47b761ce2a6df2968b354548d1 /src/ex_docmd.c | |
parent | 31d9948e3a2529c2f619d56bdb48291dc261233d (diff) | |
download | vim-git-bf79a4e48d09a5ae08645592885d54230fed30b8.tar.gz |
patch 8.2.5027: error for missing :endif when an exception was thrownv8.2.5027
Problem: Error for missing :endif when an exception was thrown. (Dani
Dickstein)
Solution: Do not give an error when aborting. (closes #10490)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 3 |
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) |