summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2022-03-08 00:47:19 -0500
committerJesse Luehrs <doy@tozt.net>2022-03-08 00:47:19 -0500
commit4e55372bf71a0f20c040a25d9254a2986a9f5f18 (patch)
treef40f1dbeb8769999a6a3a51246269a3c982528ba
parentc271a9e62251f76e9798894346adcbfd3aa6dc8a (diff)
downloadnbsh-4e55372bf71a0f20c040a25d9254a2986a9f5f18.tar.gz
nbsh-4e55372bf71a0f20c040a25d9254a2986a9f5f18.zip
use the current size when rendering an entry
not the size of the terminal when the entry was run
-rw-r--r--src/shell/history/entry.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shell/history/entry.rs b/src/shell/history/entry.rs
index ad931dc..56f378a 100644
--- a/src/shell/history/entry.rs
+++ b/src/shell/history/entry.rs
@@ -44,7 +44,7 @@ impl Entry {
offset: time::UtcOffset,
) {
let idx = self.env.idx();
- let size = vt.screen().size();
+ let size = out.screen().size();
let time = self.state.exit_info().map_or_else(
|| {
format!(