if (di == NULL)
{
semsg(_(e_undefvar), name);
+ if (trylevel > 0)
+ continue;
goto failed;
}
else
--trystack->ga_len;
--trylevel;
+ ectx.ec_in_catch = FALSE;
trycmd = ((trycmd_T *)trystack->ga_data)
+ trystack->ga_len;
if (trycmd->tcd_caught && current_exception != NULL)
case EXPR_DIV: f1 = f1 / f2; break;
case EXPR_SUB: f1 = f1 - f2; break;
case EXPR_ADD: f1 = f1 + f2; break;
- default: emsg(_(e_modulus)); goto failed;
+ default: emsg(_(e_modulus));
+ if (trylevel > 0)
+ continue;
+ goto failed;
}
clear_tv(tv1);
clear_tv(tv2);
if (tv->v_type != VAR_LIST)
{
emsg(_(e_listreq));
+ if (trylevel > 0)
+ continue;
goto failed;
}
list = tv->vval.v_list;
if (tv->v_type != VAR_NUMBER)
{
emsg(_(e_number_exp));
+ if (trylevel > 0)
+ continue;
goto failed;
}
n = tv->vval.v_number;
if ((li = list_find(list, n)) == NULL)
{
semsg(_(e_listidx), n);
+ if (trylevel > 0)
+ continue;
goto failed;
}
--ectx.ec_stack.ga_len;
// Clear the list after getting the item, to avoid that it
- // make the item invalid.
+ // makes the item invalid.
tv = STACK_TV_BOT(-1);
temp_tv = *tv;
copy_tv(&li->li_tv, tv);
if ((di = dict_find(dict, key, -1)) == NULL)
{
semsg(_(e_dictkey), key);
+ if (trylevel > 0)
+ continue;
goto failed;
}
clear_tv(tv);