From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23853 invoked from network); 25 Oct 1999 13:50:19 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 25 Oct 1999 13:50:19 -0000 Received: (qmail 20742 invoked by alias); 25 Oct 1999 13:50:07 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8413 Received: (qmail 20735 invoked from network); 25 Oct 1999 13:50:06 -0000 Sender: aduret@venus.l2i To: zsh-workers@sunsite.auc.dk Subject: Re: PATCH: files attributes not colored by complist References: <199910251218.OAA05653@beta.informatik.hu-berlin.de> X-Attribution: plx From: Alexandre Duret-Lutz Date: 25 Oct 1999 16:49:09 +0100 In-Reply-To: Sven Wischnowsky's message of "Mon, 25 Oct 1999 14:18:07 +0200 (MET DST)" Message-ID: <7d904rh24q.fsf@venus.l2i> User-Agent: Gnus/5.0700000000000003 (Pterodactyl Gnus v0.97) Emacs/20.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >>> "SW" == Sven Wischnowsky writes: [...] SW> This patch adds the `tc' (for type-character) and `sp' (for `space') SW> capabilities. [...] I don't want to split hairs, but I think that, while colors should stop before file type, the menu-selection mark should still run until the end of column. If you agree with this, the following apply after 8412. --- complist.c.old Mon Oct 25 15:58:07 1999 +++ complist.c Mon Oct 25 16:03:22 1999 @@ -346,11 +346,7 @@ len = width - 2; while (len-- > 0) putc(' ', shout); - if (mcolors.cols[COL_EC]) - tputs(mcolors.cols[COL_EC], 1, putshout); - else - zcputs(&mcolors, COL_NO); - + zcoff(); return; } m = *mp; @@ -412,19 +408,19 @@ nicezputs((m->disp ? m->disp : m->str), shout); len = niceztrlen(m->disp ? m->disp : m->str); - if (isset(LISTTYPES)) { - zcoff(); - zcputs(&mcolors, COL_TC); - if (buf) - putc(file_type(buf->st_mode), shout); - else - putc(' ', shout); - len++; + if (isset(LISTTYPES) && buf) { + if (m->gnum != mselect) { + zcoff(); + zcputs(&mcolors, COL_TC); + } + putc(file_type(buf->st_mode), shout); + len++; } if ((len = width - len - 2) > 0) { - zcoff(); - zcputs(&mcolors, COL_SP); - + if (m->gnum != mselect) { + zcoff(); + zcputs(&mcolors, COL_SP); + } while (len-- > 0) putc(' ', shout); } -- Alexandre Duret-Lutz