Don't replace TABs with spaces for COLORLS because "some terminals get confused"
as comment says. I know no terminal confused by this. If even such terminal exists, it must be termcap flag for this, not hardcoded in ls.
This commit is contained in:
parent
a04eaf5b2e
commit
82dd3eab13
@ -241,18 +241,6 @@ printcol(dp)
|
||||
dp->s_block);
|
||||
if ((base += numrows) >= num)
|
||||
break;
|
||||
#ifdef COLORLS
|
||||
/*
|
||||
* some terminals get confused if we mix tabs
|
||||
* with color sequences
|
||||
*/
|
||||
if (f_color)
|
||||
while ((cnt = (chcnt + 1)) <= endcol) {
|
||||
(void)putchar(' ');
|
||||
chcnt = cnt;
|
||||
}
|
||||
else
|
||||
#endif
|
||||
while ((cnt = ((chcnt + tabwidth) & ~(tabwidth - 1)))
|
||||
<= endcol){
|
||||
(void)putchar(f_notabs ? ' ' : '\t');
|
||||
|
Loading…
Reference in New Issue
Block a user