mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-04 09:09:56 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=61325
@ -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