1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-13 11:21:13 +02:00

manual/8413

This commit is contained in:
Tanaka Akira 1999-10-26 14:59:22 +00:00
parent 8cdb92e6c6
commit 56f338eb8b

View file

@ -346,11 +346,7 @@ clprintm(Cmgroup g, Cmatch *mp, int mc, int ml, int lastc, int width,
len = width - 2; len = width - 2;
while (len-- > 0) while (len-- > 0)
putc(' ', shout); putc(' ', shout);
if (mcolors.cols[COL_EC]) zcoff();
tputs(mcolors.cols[COL_EC], 1, putshout);
else
zcputs(&mcolors, COL_NO);
return; return;
} }
m = *mp; m = *mp;
@ -412,19 +408,19 @@ clprintm(Cmgroup g, Cmatch *mp, int mc, int ml, int lastc, int width,
nicezputs((m->disp ? m->disp : m->str), shout); nicezputs((m->disp ? m->disp : m->str), shout);
len = niceztrlen(m->disp ? m->disp : m->str); len = niceztrlen(m->disp ? m->disp : m->str);
if (isset(LISTTYPES)) { if (isset(LISTTYPES) && buf) {
if (m->gnum != mselect) {
zcoff(); zcoff();
zcputs(&mcolors, COL_TC); zcputs(&mcolors, COL_TC);
if (buf) }
putc(file_type(buf->st_mode), shout); putc(file_type(buf->st_mode), shout);
else
putc(' ', shout);
len++; len++;
} }
if ((len = width - len - 2) > 0) { if ((len = width - len - 2) > 0) {
if (m->gnum != mselect) {
zcoff(); zcoff();
zcputs(&mcolors, COL_SP); zcputs(&mcolors, COL_SP);
}
while (len-- > 0) while (len-- > 0)
putc(' ', shout); putc(' ', shout);
} }