Fix to not show style decorations in auto mode when piping

This commit is contained in:
Keith Hall committed 2025-11-30 05:02:13 +02:00
1 parent d17481575a
commit 7d37325c19
3 files changed
+5 -12

No files matched your search

+1 -2
View File
@@ -384,8 +384,7 @@ impl App {
.map(|s| s.as_str())
== Some("always")
|| self.matches.get_flag("force-colorization")
|| self.matches.get_flag("number")
|| self.matches.contains_id("style") && !style_components.plain()),
|| self.matches.get_flag("number")),
tab_width: self
.matches
.get_one::<String>("tabs")