mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.1700: Vim9: try/catch causes wrong value to be returned
Problem: Vim9: try/catch causes wrong value to be returned. Solution: Reset tcd_return. (closes #6964)
This commit is contained in:
@@ -1922,6 +1922,7 @@ call_def_function(
|
||||
trycmd->tcd_catch_idx = iptr->isn_arg.try.try_catch;
|
||||
trycmd->tcd_finally_idx = iptr->isn_arg.try.try_finally;
|
||||
trycmd->tcd_caught = FALSE;
|
||||
trycmd->tcd_return = FALSE;
|
||||
}
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user