From bae526275a3a40c241ac863bb764139026b2afb1 Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Sun, 11 Jun 2000 08:15:27 +0000 Subject: Alexandre: Fix colored listings crash (article number attribution may be wrong in ChangeLog). --- Src/Zle/complist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src') diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c index c1481612b..a5cabe878 100644 --- a/Src/Zle/complist.c +++ b/Src/Zle/complist.c @@ -489,7 +489,7 @@ doiscol(Listcols c, int pos) /* insert e in sendpos */ for (i = curissend; sendpos[i] <= e; ++i) ; - for (j = i + 1; j < MAX_POS; ++j) + for (j = MAX_POS - 1; j > i; --j) sendpos[j] = sendpos[j-1]; sendpos[i] = e; -- cgit 1.4.1