summaryrefslogtreecommitdiffstats
path: root/src/tab.rs
diff options
context:
space:
mode:
authorqkzk <qu3nt1n@gmail.com>2023-11-07 22:09:46 +0100
committerqkzk <qu3nt1n@gmail.com>2023-11-07 22:09:46 +0100
commit0d2e2c8a740ca944d432937643008f6220db37ab (patch)
treee69c470c723347272d2b46a91e8fa7f4ea44907a /src/tab.rs
parentab4a400885593bd1fd086bb89eac24d6f494589d (diff)
dev
Diffstat (limited to 'src/tab.rs')
-rw-r--r--src/tab.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tab.rs b/src/tab.rs
index 5e7ad3e..6bc39e0 100644
--- a/src/tab.rs
+++ b/src/tab.rs
@@ -354,10 +354,10 @@ impl Tab {
/// Move down 10 times in the tree
pub fn tree_page_down(&mut self) -> Result<()> {
for _ in 1..10 {
- self.tree.go(To::Next);
if self.tree.is_on_last() {
break;
}
+ self.tree.go(To::Next);
}
Ok(())
}
@@ -365,10 +365,10 @@ impl Tab {
/// Move up 10 times in the tree
pub fn tree_page_up(&mut self) {
for _ in 1..10 {
- self.tree.go(To::Prev);
if self.tree.is_on_root() {
break;
}
+ self.tree.go(To::Prev);
}
}