Fix term width for the table (#346)

This commit is contained in:
JT
2021-11-18 18:48:15 +13:00
committed by GitHub
parent f8f437b060
commit 96bdcc4ff7
2 changed files with 22 additions and 3 deletions

View File

@ -37,7 +37,7 @@ impl Command for Table {
let config = stack.get_config()?;
let term_width = if let Some((Width(w), Height(_h))) = terminal_size::terminal_size() {
w as usize
(w - 1) as usize
} else {
80usize
};