about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-09-23 13:12:44 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-09-23 13:12:44 +0000
commit679eca13696bf626db9283bff462ee80de1efa88 (patch)
tree7d07e43b40a268f7a1075c3a6c1edc3f54e42bf4 /Src
parentd293470f7aa3612420f0d090df080ecef1d934a8 (diff)
downloadzsh-679eca13696bf626db9283bff462ee80de1efa88.tar.gz
zsh-679eca13696bf626db9283bff462ee80de1efa88.tar.xz
zsh-679eca13696bf626db9283bff462ee80de1efa88.zip
zsh-workers/8015
Diffstat (limited to 'Src')
-rw-r--r--Src/Zle/zle_tricky.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c
index e3b503265..d77301517 100644
--- a/Src/Zle/zle_tricky.c
+++ b/Src/Zle/zle_tricky.c
@@ -6932,7 +6932,7 @@ makecomplistflags(Compctl cc, char *s, int incmd, int compadd)
 	/* Now search the history. */
 	while (n-- && he) {
 	    int iwords;
-	    for (iwords = 0; iwords < he->nwords; iwords++) {
+	    for (iwords = he->nwords - 1; iwords >= 0; iwords--) {
 		h = he->text + he->words[iwords*2];
 		e = he->text + he->words[iwords*2+1];
 		hpatsav = *e;