From 153320ef335d96a35d8a61d6c11767ebd09c3284 Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Wed, 7 Oct 2020 12:45:57 -0500 Subject: [PATCH] Added -1 back when determining term_width (#2646) * Added -1 back * retrigger checks * removed the max * fixed a mistake --- crates/nu-cli/src/env/host.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/nu-cli/src/env/host.rs b/crates/nu-cli/src/env/host.rs index a361ea203b..cddcb276ce 100644 --- a/crates/nu-cli/src/env/host.rs +++ b/crates/nu-cli/src/env/host.rs @@ -126,7 +126,8 @@ impl Host for BasicHost { } 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 } }