Problem: Cannot catch errors in a channel command.
Solution: Instead of skipping the error make it silent. (closes #8477)
char_u *json = NULL;
// Don't pollute the display with errors.
- ++emsg_skip;
+ // Do generate the errors so that try/catch works.
+ ++emsg_silent;
if (!is_call)
{
ch_log(channel, "Evaluating expression '%s'", (char *)arg);
vim_free(json);
}
}
- --emsg_skip;
+ --emsg_silent;
if (tv == &res_tv)
clear_tv(tv);
else
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 3081,
/**/
3080,
/**/