forked from aniani/vim
patch 8.2.4071: Vim9: no detection of return in try/endtry
Problem: Vim9: no detection of return in try/endtry. (Dominique Pellé) Solution: Check if any of the blocks inside try/endtry did not end in return.
This commit is contained in:
@@ -3041,7 +3041,6 @@ compile_def_function(
|
||||
break;
|
||||
case CMD_endtry:
|
||||
line = compile_endtry(p, &cctx);
|
||||
cctx.ctx_had_return = FALSE;
|
||||
break;
|
||||
case CMD_throw:
|
||||
line = compile_throw(p, &cctx);
|
||||
|
Reference in New Issue
Block a user