From b64905709a1abe210a84d508d86a1d83cc99c2d7 Mon Sep 17 00:00:00 2001 From: wangmengc Date: Thu, 13 Jun 2024 09:41:39 +0800 Subject: [PATCH] #1052 fix lsd pipe output --- src/core.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core.rs b/src/core.rs index cc526a1ff..4ec4ee53b 100644 --- a/src/core.rs +++ b/src/core.rs @@ -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(), @@ -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); };