From 686b08fd4e89f636caacadef9f6943f40e35580f Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Mon, 24 Jan 2000 14:06:53 +0000 Subject: zsh-workers/9416 --- Src/Zle/complist.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Src/Zle') diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c index ce00ed240..39eee8b85 100644 --- a/Src/Zle/complist.c +++ b/Src/Zle/complist.c @@ -453,13 +453,13 @@ initiscol(Listcols c) curisbeg = curisend = 0; for (i = nrefs; i < MAX_POS; i++) - begpos[i] = -1, endpos[i] = 0xfffffff; + begpos[i] = endpos[i] = -1; } static void doiscol(Listcols c, int pos) { - if (pos > endpos[curisend]) { + if (endpos[curisend] >= 0 && pos > endpos[curisend]) { curisend++; if (curiscol) { zcputs(c, NULL, COL_NO); @@ -700,7 +700,7 @@ clprintm(Cmgroup g, Cmatch *mp, int mc, int ml, int lastc, int width, else if (mselect >= 0 && (m->flags & (CMF_MULT | CMF_FMULT))) zcputs(&mcolors, g->name, COL_DU); else if (buf) - subcols = putfilecol(&mcolors, g->name, path, buf->st_mode); + subcols = putfilecol(&mcolors, g->name, m->str, buf->st_mode); else subcols = putmatchcol(&mcolors, g->name, (m->disp ? m->disp : m->str)); -- cgit 1.4.1