Skip to content

Commit

Permalink
fix: reset scroll on markdown navigation (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin271 authored Jan 9, 2024
1 parent a4a5fc6 commit dd4536b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(
Expand Down

0 comments on commit dd4536b

Please sign in to comment.