Subject: Re: question about libedit
To: Christos Zoulas <email@example.com>
From: Kouichirou Hiratsuka <firstname.lastname@example.org>
Date: 08/08/2005 10:32:45
At Sun, 7 Aug 2005 21:22:50 -0400,
Christos Zoulas wrote:
> On Aug 8, 9:54am, email@example.com (Kouichirou Hiratsuka) wrote:
> -- Subject: question about libedit
> | Hello,
> | I have a question about this commit.
> | http://mail-index.NetBSD.org/source-changes/2005/08/01/0017.html
> | By this change, the resetting of the el->el_history.eventno has been
> | removed from the ch_reset() in the src/lib/libedit/chared.c. This
> | causes a problem to the command history of /bin/sh. The history
> | position is not reset by return and ctrl-c.
> | Is this really unneeded?
> I think this was an accident. Please put it back, or send me a diff
> and I will do it.
I've attached a diff. Please commit it.
RCS file: /cvs/cvsroot/src/lib/libedit/chared.c,v
retrieving revision 1.24
diff -u -r1.24 chared.c
--- lib/libedit/chared.c 1 Aug 2005 23:00:15 -0000 1.24
+++ lib/libedit/chared.c 8 Aug 2005 01:27:18 -0000
@@ -523,6 +523,8 @@
el->el_state.argument = 1;
el->el_state.lastcmd = ED_UNASSIGNED;
+ el->el_history.eventno = 0;