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

patch 8.2.5027: error for missing :endif when an exception was thrown

Problem:    Error for missing :endif when an exception was thrown. (Dani
            Dickstein)
Solution:   Do not give an error when aborting. (closes #10490)
This commit is contained in:
Bram Moolenaar
2022-05-27 13:52:08 +01:00
parent 31d9948e3a
commit bf79a4e48d
3 changed files with 21 additions and 1 deletions

View File

@@ -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)