diff options
author | rsc <devnull@localhost> | 2006-06-25 23:52:41 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-06-25 23:52:41 +0000 |
commit | e074ed0d7e7c45a087f745709818b026dcbe2ee0 (patch) | |
tree | 5db8419a9fc1f4ec288e0c1bcc10d17586593667 /src/libacme | |
parent | 7bd73c7fd4a96e5e22ba48397de5ccde0fff09ea (diff) | |
download | plan9port-e074ed0d7e7c45a087f745709818b026dcbe2ee0.tar.gz plan9port-e074ed0d7e7c45a087f745709818b026dcbe2ee0.tar.bz2 plan9port-e074ed0d7e7c45a087f745709818b026dcbe2ee0.zip |
save old q0, q1
Diffstat (limited to 'src/libacme')
-rw-r--r-- | src/libacme/acme.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; |