From bfda50eac5ab0d75902d2ca1699854fa9e7784f9 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Mon, 16 Oct 2023 23:00:17 +0200 Subject: Fix scroll top --- src/ui.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui.rs b/src/ui.rs index 081802f..1fe15e8 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -137,7 +137,7 @@ fn handle_events(ui: &mut UI) -> io::Result { } } KeyCode::Char('K') | KeyCode::Char('0') => { - ui.scroll = ui.height; + ui.scroll = 1; } _ => {} } -- cgit v1.2.3-18-g5258