From b52e31fac2641fd8ce25fd237d791f7ece3ca48c Mon Sep 17 00:00:00 2001 From: Maxim Zhiburt Date: Thu, 29 Jun 2023 01:52:04 +0300 Subject: [PATCH] Fix #9548 (#9552) close #9548 Could you verify @fdncred the fix? PS: Maybe a test shall be created (to test proper colors)? Signed-off-by: Maxim Zhiburt --- crates/nu-table/src/types/expanded.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/nu-table/src/types/expanded.rs b/crates/nu-table/src/types/expanded.rs index 991cebf761..c0a23edecd 100644 --- a/crates/nu-table/src/types/expanded.rs +++ b/crates/nu-table/src/types/expanded.rs @@ -466,7 +466,7 @@ fn expanded_table_kv(cols: &[String], vals: &[Value], opts: Options<'_>) -> Stri } let mut table = NuTable::from(data); - let keys_style = get_index_style(opts.style_computer).alignment(Alignment::Left); + let keys_style = get_header_style(opts.style_computer).alignment(Alignment::Left); table.set_index_style(keys_style); let out = TableOutput::new(table, false, true);