From b82790d1f66ff72e4e5ff91472b6ae2d2c81d822 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Mon, 6 Sep 1999 09:57:51 +0000 Subject: zsh-workers/7655 --- Src/Zle/zle_tricky.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Src') diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c index 652ef24c1..672b049f7 100644 --- a/Src/Zle/zle_tricky.c +++ b/Src/Zle/zle_tricky.c @@ -874,6 +874,8 @@ docomplete(int lst) metafy_line(); ocs = cs; + origline = dupstring((char *) line); + origcs = cs; if (!isfirstln && chline != NULL) { /* If we are completing in a multi-line buffer (which was not * * taken from the history), we have to prepend the stuff saved * @@ -897,8 +899,6 @@ docomplete(int lst) autoq = '\0'; /* Get the word to complete. */ noerrs = 1; - origline = dupstring((char *) line); - origcs = cs; s = get_comp_string(); DPUTS(wb < 0 || cs < wb || cs > we, "BUG: 0 <= wb <= cs <= we is not true!"); -- cgit 1.4.1