From e074ed0d7e7c45a087f745709818b026dcbe2ee0 Mon Sep 17 00:00:00 2001 From: rsc Date: Sun, 25 Jun 2006 23:52:41 +0000 Subject: save old q0, q1 --- src/libacme/acme.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/libacme') diff --git a/src/libacme/acme.c b/src/libacme/acme.c index 35d222d5..8904b4c2 100644 --- a/src/libacme/acme.c +++ b/src/libacme/acme.c @@ -411,11 +411,15 @@ winreadevent(Win *w, Event *e) } efd = wfid(w, "event"); gete(w, efd, e); + e->oq0 = e->q0; + e->oq1 = e->q1; /* expansion */ if(e->flag&2){ gete(w, efd, &w->e2); if(e->q0==e->q1){ + w->e2.oq0 = e->q0; + w->e2.oq1 = e->q1; w->e2.flag = e->flag; *e = w->e2; } @@ -521,7 +525,7 @@ pipetowin(Win *w, char *name, int errto, char *cmd, ...) char* sysrun(char *fmt, ...) { - static char buf[1024]; + static char buf[1025]; char *cmd; va_list arg; int n, fd[3], p[2], tot; -- cgit v1.2.3