diff options
author | qkzk <qu3nt1n@gmail.com> | 2023-11-07 22:09:46 +0100 |
---|---|---|
committer | qkzk <qu3nt1n@gmail.com> | 2023-11-07 22:09:46 +0100 |
commit | 0d2e2c8a740ca944d432937643008f6220db37ab (patch) | |
tree | e69c470c723347272d2b46a91e8fa7f4ea44907a /src | |
parent | ab4a400885593bd1fd086bb89eac24d6f494589d (diff) |
dev
Diffstat (limited to 'src')
-rw-r--r-- | src/tab.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } } |