Skip to content

Commit

Permalink
#1052 fix lsd pipe output
Browse files Browse the repository at this point in the history
  • Loading branch information
WangMengabc authored and zwpaper committed Aug 19, 2024
1 parent 9b310da commit b649057
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ impl Core {
#[cfg(target_os = "windows")]
let console_color_ok = crossterm::ansi_support::supports_ansi();

let mut inner_flags = flags.clone();

let color_theme = match (tty_available && console_color_ok, flags.color.when) {
(_, ColorOption::Never) | (false, ColorOption::Auto) => ThemeOption::NoColor,
_ => flags.color.theme.clone(),
Expand All @@ -71,7 +69,7 @@ impl Core {
//
// Most of the programs does not handle correctly the ansi colors
// or require a raw output (like the `wc` command).
inner_flags.layout = Layout::OneLine;
flags.layout = Layout::OneLine;

flags.literal = Literal(true);
};
Expand Down

0 comments on commit b649057

Please sign in to comment.