From dd4536b6f1bb408bf742a75d9db889b88482cef5 Mon Sep 17 00:00:00 2001 From: Valentin271 <36198422+Valentin271@users.noreply.github.com> Date: Tue, 9 Jan 2024 21:38:34 +0100 Subject: [PATCH] fix: reset scroll on markdown navigation (#213) --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.rs b/src/main.rs index 879a570b..428f2b20 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!(