mirror of
https://github.com/lsd-rs/lsd
synced 2024-12-13 21:52:37 +00:00
Fix the --icon=never in case of no tty
This commit is contained in:
parent
398907f81a
commit
5f50be78e9
2 changed files with 2 additions and 1 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -84,7 +84,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||
|
||||
[[package]]
|
||||
name = "lsd"
|
||||
version = "0.11.1"
|
||||
version = "0.11.2-pre"
|
||||
dependencies = [
|
||||
"ansi_term 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"chrono-humanize 0.0.11 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
|
|
@ -30,6 +30,7 @@ impl Core {
|
|||
|
||||
let icon_theme = match (tty_available, flags.icon) {
|
||||
(true, WhenFlag::Never) => icon::Theme::NoIcon,
|
||||
(false, WhenFlag::Never) => icon::Theme::NoIcon,
|
||||
(false, WhenFlag::Auto) => icon::Theme::NoIcon,
|
||||
(false, WhenFlag::Always) => icon::Theme::Default,
|
||||
_ => icon::Theme::Default,
|
||||
|
|
Loading…
Reference in a new issue