mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 17:28:23 +00:00
vim-patch:8.2.3478: still crash with error in :catch and also in :finally
Problem: Still crash with error in :catch and also in :finally.
Solution: Only call finish_exception() once. (closes vim/vim#8954)
f67d3fb736
Exclude CSF_FUNC_DEF change (Vim9script).
This commit is contained in:
@@ -1934,8 +1934,9 @@ int cleanup_conditionals(cstack_T *cstack, int searched_cond, int inclusive)
|
||||
*/
|
||||
if (!(cstack->cs_flags[idx] & CSF_FINALLY)) {
|
||||
if ((cstack->cs_flags[idx] & CSF_ACTIVE)
|
||||
&& (cstack->cs_flags[idx] & CSF_CAUGHT)) {
|
||||
&& (cstack->cs_flags[idx] & CSF_CAUGHT) && !(cstack->cs_flags[idx] & CSF_FINISHED)) {
|
||||
finish_exception((except_T *)cstack->cs_exception[idx]);
|
||||
cstack->cs_flags[idx] |= CSF_FINISHED;
|
||||
}
|
||||
// Stop at this try conditional - except the try block never
|
||||
// got active (because of an inactive surrounding conditional
|
||||
|
Reference in New Issue
Block a user