mirror of
https://github.com/nushell/nushell.git
synced 2024-11-07 17:14:23 +01:00
Added -1 back when determining term_width (#2646)
* Added -1 back * retrigger checks * removed the max * fixed a mistake
This commit is contained in:
parent
ff236da72c
commit
153320ef33
3
crates/nu-cli/src/env/host.rs
vendored
3
crates/nu-cli/src/env/host.rs
vendored
@ -126,7 +126,8 @@ impl Host for BasicHost {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn width(&self) -> usize {
|
fn width(&self) -> usize {
|
||||||
let (term_width, _) = term_size::dimensions().unwrap_or_else(|| (80, 20));
|
let (mut term_width, _) = term_size::dimensions().unwrap_or_else(|| (80, 20));
|
||||||
|
term_width -= 1;
|
||||||
term_width
|
term_width
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user