From 55b8857726ee7daf75b3dc1c1dd3ca4235868fd3 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Fri, 11 Feb 2000 11:12:26 +0000 Subject: zsh-workers/9676 --- Src/Zle/computil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Src/Zle/computil.c') diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c index 64ce394c6..9d289f16b 100644 --- a/Src/Zle/computil.c +++ b/Src/Zle/computil.c @@ -1235,12 +1235,12 @@ ca_parse_line(Cadef d) else { LinkList l = state.oargs[state.curopt->num]; + if (cur < compcurrent) + memcpy(&ca_laststate, &state, sizeof(state)); PERMALLOC { for (; line; line = compwords[cur++]) addlinknode(l, ztrdup(line)); } LASTALLOC; - if (cur < compcurrent) - memcpy(&ca_laststate, &state, sizeof(state)); ca_laststate.ddef = NULL; ca_laststate.doff = 0; break; -- cgit 1.4.1