The previous commit removed too much and forgot to reset the history event

number. From Kouichirou Hiratsuka, many thanks!
This commit is contained in:
christos 2005-08-08 01:41:30 +00:00
parent a35a74cd06
commit 76b5907b5f

View File

@ -1,4 +1,4 @@
/* $NetBSD: chared.c,v 1.24 2005/08/01 23:00:15 christos Exp $ */
/* $NetBSD: chared.c,v 1.25 2005/08/08 01:41:30 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)chared.c 8.1 (Berkeley) 6/4/93";
#else
__RCSID("$NetBSD: chared.c,v 1.24 2005/08/01 23:00:15 christos Exp $");
__RCSID("$NetBSD: chared.c,v 1.25 2005/08/08 01:41:30 christos Exp $");
#endif
#endif /* not lint && not SCCSID */
@ -523,6 +523,8 @@ ch_reset(EditLine *el, int mclear)
el->el_state.argument = 1;
el->el_state.lastcmd = ED_UNASSIGNED;
el->el_history.eventno = 0;
if (mclear)
ch__clearmacro(el);
}