From c6505e07a30ab4e2e9e8a03bfa0af560bee2b6cb Mon Sep 17 00:00:00 2001 From: Roland Schaer Date: Tue, 10 Jun 2025 20:05:00 +0200 Subject: [PATCH] fix: ls command does not respect MISE_COLOR value --- src/ui/table.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/table.rs b/src/ui/table.rs index 5a60029b60..0589d53d69 100644 --- a/src/ui/table.rs +++ b/src/ui/table.rs @@ -52,8 +52,8 @@ impl MiseTable { table .load_preset(comfy_table::presets::NOTHING) .set_content_arrangement(ContentArrangement::Dynamic); - if console::colors_enabled() { - table.enforce_styling(); + if !console::colors_enabled() { + table.force_no_tty(); } if !no_header && console::user_attended() { let headers = headers.iter().map(Self::header).collect_vec();