summaryrefslogtreecommitdiffstats
path: root/src/shell/history/entry.rs
diff options
context:
space:
mode:
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!(