about summary refs log tree commit diff
path: root/Src/Zle/complist.c
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2000-06-11 08:15:27 +0000
committerBart Schaefer <barts@users.sourceforge.net>2000-06-11 08:15:27 +0000
commitbae526275a3a40c241ac863bb764139026b2afb1 (patch)
treec76ebb839ed3099e569a28f1424ddf6a848f8bad /Src/Zle/complist.c
parent422c08622c0708414026bc9e3191fb201d15e4d7 (diff)
downloadzsh-bae526275a3a40c241ac863bb764139026b2afb1.tar.gz
zsh-bae526275a3a40c241ac863bb764139026b2afb1.tar.xz
zsh-bae526275a3a40c241ac863bb764139026b2afb1.zip
Alexandre: Fix colored listings crash (article number attribution may be
wrong in ChangeLog).
Diffstat (limited to 'Src/Zle/complist.c')
-rw-r--r--Src/Zle/complist.c2
1 files changed, 1 insertions, 1 deletions
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;