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 0d58e05 commit 5d2f714Copy full SHA for 5d2f714
1 file changed
src/uu/ls/src/config.rs
@@ -788,13 +788,10 @@ impl Config {
788
};
789
let width = parse_width(options.get_one::<String>(options::WIDTH))?;
790
791
- #[allow(clippy::needless_bool)]
792
let mut show_control = if options.get_flag(options::HIDE_CONTROL_CHARS) {
793
false
794
- } else if options.get_flag(options::SHOW_CONTROL_CHARS) {
795
- true
796
} else {
797
- !stdout().is_terminal()
+ options.get_flag(options::SHOW_CONTROL_CHARS) || !stdout().is_terminal()
798
799
800
let (mut quoting_style, mut locale_quoting) = extract_quoting_style(options, show_control);
0 commit comments