From 493eb12abb0b83ff654454db1fa0beca73d2da37 Mon Sep 17 00:00:00 2001 From: Fabian Lippold Date: Tue, 2 Jan 2024 15:38:53 +0100 Subject: [PATCH] cargo update & fix list indices --- src/tui/files.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tui/files.rs b/src/tui/files.rs index ce9f40c..3918ed5 100644 --- a/src/tui/files.rs +++ b/src/tui/files.rs @@ -277,7 +277,7 @@ impl Tui for Files { if selected < len + 1 - area.height as usize / 2 { selected - area.height as usize / 2 } else { - len + 2 - area.height as usize + len + 1 - area.height as usize } } else { 0