From 679eca13696bf626db9283bff462ee80de1efa88 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 23 Sep 1999 13:12:44 +0000 Subject: zsh-workers/8015 --- Src/Zle/zle_tricky.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/Zle/zle_tricky.c') 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; -- cgit 1.4.1