Skip to content

Commit 711658c

Browse files
committed
fix: navigate back to first row on page change
1 parent c472bd2 commit 711658c

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "omaro"
33
description = "TUI for lobste.rs. Browse posts and comments from the comfort of your terminal"
4-
version = "0.1.2"
4+
version = "0.1.3"
55
edition = "2024"
66
repository = "https://github.com/rolv-apneseth/omaro"
77
homepage = "https://github.com/rolv-apneseth/omaro"

src/app/navigate.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ impl App {
9696
if !self.load_page(prev_page, page) {
9797
self.load_posts(tx)?;
9898
};
99+
100+
self.first_row();
99101
}
100102
Ok(())
101103
}
@@ -107,6 +109,8 @@ impl App {
107109
if !self.load_page(prev_page, page) {
108110
self.load_posts(tx)?;
109111
};
112+
113+
self.first_row();
110114
}
111115
Ok(())
112116
}

0 commit comments

Comments
 (0)