We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ae5799 commit 6f90043Copy full SHA for 6f90043
src/uu/ls/src/ls.rs
@@ -1087,12 +1087,13 @@ impl Config {
1087
Dereference::DirArgs
1088
};
1089
1090
- let tab_size = match needs_color {
1091
- false => options
+ let tab_size = if !needs_color {
+ options
1092
.get_one::<String>(options::format::TAB_SIZE)
1093
.and_then(|size| size.parse::<usize>().ok())
1094
- .or_else(|| std::env::var("TABSIZE").ok().and_then(|s| s.parse().ok())),
1095
- _ => Some(0),
+ .or_else(|| std::env::var("TABSIZE").ok().and_then(|s| s.parse().ok()))
+ } else {
1096
+ Some(0)
1097
}
1098
.unwrap_or(SPACES_IN_TAB);
1099
0 commit comments