From b5b523f314022664291059f89c4d22a342b1d260 Mon Sep 17 00:00:00 2001 From: Maxim Zhiburt Date: Tue, 17 Dec 2024 15:41:48 +0300 Subject: [PATCH] Fix CI --- crates/nu-command/src/viewers/table.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/nu-command/src/viewers/table.rs b/crates/nu-command/src/viewers/table.rs index e8f266c29b..e128ba637d 100644 --- a/crates/nu-command/src/viewers/table.rs +++ b/crates/nu-command/src/viewers/table.rs @@ -21,7 +21,7 @@ use nu_table::{ common::create_nu_table_config, CollapsedTable, ExpandedTable, JustTable, NuRecordsValue, NuTable, StringResult, TableOpts, TableOutput, }; -use nu_utils::get_ls_colors; +use nu_utils::{get_ls_colors, terminal_size}; use lscolors::{LsColors, Style}; use url::Url; @@ -1163,7 +1163,7 @@ fn get_cwd(engine_state: &EngineState, stack: &mut Stack) -> ShellResult) -> usize { if let Some(col) = width_param { col as usize - } else if let Ok((w, _h)) = crossterm::terminal::size() { + } else if let Ok((w, _h)) = terminal_size() { w as usize } else { DEFAULT_TABLE_WIDTH