about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Src/Zle/complist.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b32f0c8da..0dbfc405f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-06-11  Bart Schaefer  <schaefer@zsh.org>
+
+	* Alexandre: 11864: Src/Zle/complist.c: Shift an array the opposite
+	way to fix colored listings crash.
+
 2000-06-11  Tanaka Akira  <akr@zsh.org>
 
 	* 11861: Completion/User/_cvs: fix -a use for compadd.
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;