print string returned by draw_table, in autoview when pivot mode is on (#3135)

This commit is contained in:
rezural 2021-03-07 02:17:37 +11:00 committed by GitHub
parent d43489a6a0
commit 74e10d6f72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -253,7 +253,7 @@ pub async fn autoview(context: RunnableContext) -> Result<OutputStream, ShellErr
let table = let table =
nu_table::Table::new(vec![], entries, nu_table::Theme::compact()); nu_table::Table::new(vec![], entries, nu_table::Theme::compact());
nu_table::draw_table(&table, term_width, &color_hm); println!("{}", nu_table::draw_table(&table, term_width, &color_hm));
} }
Value { Value {
value: UntaggedValue::Primitive(Primitive::Nothing), value: UntaggedValue::Primitive(Primitive::Nothing),