diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-06 11:05:38 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-06 11:05:38 +0000 |
commit | 929c56748420b581088cd75443d21d7c06ac44d6 (patch) | |
tree | bd68094f0d44922a9b125ea4211c45267506e478 /Src/Zle/zle_tricky.c | |
parent | fb37f90888121c0fcf173539c3316e78379ff832 (diff) | |
download | zsh-929c56748420b581088cd75443d21d7c06ac44d6.tar.gz zsh-929c56748420b581088cd75443d21d7c06ac44d6.tar.xz zsh-929c56748420b581088cd75443d21d7c06ac44d6.zip |
zsh-3.1.6-pws-3 zsh-3.1.6-pws-3
Diffstat (limited to 'Src/Zle/zle_tricky.c')
-rw-r--r-- | Src/Zle/zle_tricky.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c index 672b049f7..652ef24c1 100644 --- a/Src/Zle/zle_tricky.c +++ b/Src/Zle/zle_tricky.c @@ -874,8 +874,6 @@ 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 * @@ -899,6 +897,8 @@ 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!"); |