Problem: Vim9: double error message given
Solution: Only give second error message, if ther
wasn't one given before
closes: #13278
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Ernie Rael <errael@raelity.com>
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1989,
/**/
1988,
/**/
return FAIL;
size_t len = name_end - name;
+ int did_emsg_save = did_emsg;
class_T *cl;
if (rettv->v_type == VAR_CLASS)
cl = rettv->vval.v_class;
return OK;
}
- member_not_found_msg(cl, VAR_OBJECT, name, len);
+ if (did_emsg == did_emsg_save)
+ member_not_found_msg(cl, VAR_OBJECT, name, len);
}
else if (rettv->v_type == VAR_CLASS)