summaryrefslogtreecommitdiffstats
path: root/src/shell/history/entry.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2022-03-05 00:14:03 -0500
committerJesse Luehrs <doy@tozt.net>2022-03-05 00:14:03 -0500
commit78324ef0026895a96dc05f43c66aeb6bd371e2f8 (patch)
tree2ea939d3944ccd7d9172467a06ddf44aefc04bdb /src/shell/history/entry.rs
parent54bca140d2769d1e3174d40523807ad5a728518c (diff)
downloadnbsh-78324ef0026895a96dc05f43c66aeb6bd371e2f8.tar.gz
nbsh-78324ef0026895a96dc05f43c66aeb6bd371e2f8.zip
various cleanups
Diffstat (limited to 'src/shell/history/entry.rs')
-rw-r--r--src/shell/history/entry.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shell/history/entry.rs b/src/shell/history/entry.rs
index 80e7dbe..6cad678 100644
--- a/src/shell/history/entry.rs
+++ b/src/shell/history/entry.rs
@@ -37,14 +37,14 @@ impl Entry {
pub fn render(
&self,
out: &mut impl textmode::Textmode,
- idx: usize,
entry_count: usize,
vt: &mut super::pty::Vt,
- size: (u16, u16),
focused: bool,
scrolling: bool,
offset: time::UtcOffset,
) {
+ let idx = self.env.idx();
+ let size = vt.screen().size();
let time = self.state.exit_info().map_or_else(
|| {
format!(