Problem: Error message for unknown command may mention the command twice.
(Malcolm Rowe)
Solution: Add the did_append_cmd flag. (closes #10570)
int did_set_expr_line = FALSE;
#endif
int sourcing = flags & DOCMD_VERBOSE;
+ int did_append_cmd = FALSE;
CLEAR_FIELD(ea);
ea.line1 = 1;
append_command(after_modifier);
else
append_command(*cmdlinep);
+ did_append_cmd = TRUE;
}
errormsg = (char *)IObuff;
did_emsg_syntax = TRUE;
if (errormsg != NULL && *errormsg != NUL && !did_emsg)
{
- if (sourcing || !KeyTyped)
+ if ((sourcing || !KeyTyped) && !did_append_cmd)
{
if (errormsg != (char *)IObuff)
{
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 5093,
/**/
5092,
/**/