From 2520c81ca226d34da955e97a83cb63e898eca32e Mon Sep 17 00:00:00 2001 From: Valentin271 Date: Tue, 9 Jan 2024 12:54:31 +0100 Subject: [PATCH] fix: reset scroll on markdown navigation --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.rs b/src/main.rs index bd3571c3..4ee9c021 100644 --- a/src/main.rs +++ b/src/main.rs @@ -521,6 +521,9 @@ impl Inlyne { &self.opts.file_path, contents, ); + // TODO: Once and if history is implemented, + // old scroll_y might be stored there + self.renderer.set_scroll_y(0.); } Err(err) => { tracing::warn!(