mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 9.0.1557: test failures for unreachable code
Problem: Test failures for unreachable code. Solution: Add a test override to ignore unreachable code.
This commit is contained in:
@@ -1578,7 +1578,8 @@ compile_catch(char_u *arg, cctx_T *cctx UNUSED)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (scope->se_u.se_try.ts_caught_all)
|
||||
if (scope->se_u.se_try.ts_caught_all
|
||||
&& !ignore_unreachable_code_for_testing)
|
||||
{
|
||||
emsg(_(e_catch_unreachable_after_catch_all));
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user