diff --git a/Cargo.lock b/Cargo.lock index 93ade32dad..fbb24f5a7d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -79,7 +79,7 @@ dependencies = [ [[package]] name = "ansi_rs" version = "0.1.0" -source = "git+https://gitlab.com/zhiburt/ansi_rs#f45b8378e5ac7bafc0ca2d2748505fe92e2af6d6" +source = "git+https://gitlab.com/zhiburt/ansi_rs#16173ad4a2812a2b0dc9faf1552d5985db4ee310" dependencies = [ "nom 7.1.1", ] diff --git a/crates/nu-command/src/viewers/table.rs b/crates/nu-command/src/viewers/table.rs index 062c44b19a..941bed5732 100644 --- a/crates/nu-command/src/viewers/table.rs +++ b/crates/nu-command/src/viewers/table.rs @@ -22,10 +22,10 @@ const INDEX_COLUMN_NAME: &str = "index"; fn get_width_param(width_param: Option) -> usize { if let Some(col) = width_param { col as usize - } else if let Some((Width(w), Height(_h))) = terminal_size::terminal_size() { - (w - 1) as usize + } else if let Some((Width(w), Height(_))) = terminal_size::terminal_size() { + w as usize } else { - 80usize + 80 } }