diff options
author | ache <ache@FreeBSD.org> | 2000-06-06 07:32:20 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2000-06-06 07:32:20 +0000 |
commit | 524d64647757f79f33759a99a815c5085b98c7dd (patch) | |
tree | bc79148ce24b3a04806dea68027979054595f2e0 /bin | |
parent | 9b69330acf78e02491988b88bd6b83178e8f1b0e (diff) | |
download | FreeBSD-src-524d64647757f79f33759a99a815c5085b98c7dd.zip FreeBSD-src-524d64647757f79f33759a99a815c5085b98c7dd.tar.gz |
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.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ls/print.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/bin/ls/print.c b/bin/ls/print.c index d4a9d6e..596825c 100644 --- a/bin/ls/print.c +++ b/bin/ls/print.c @@ -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'); |