1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-29 19:00:57 +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;
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 @@ clprintm(Cmgroup g, Cmatch *mp, int mc, int ml, int lastc, int width,
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);
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);
}