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:
parent
8cdb92e6c6
commit
56f338eb8b
1 changed files with 11 additions and 15 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue