From 78324ef0026895a96dc05f43c66aeb6bd371e2f8 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 5 Mar 2022 00:14:03 -0500 Subject: various cleanups --- src/shell/history/entry.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/shell/history/entry.rs') 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!( -- cgit v1.2.3-54-g00ecf