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 | |
parent | ab4a400885593bd1fd086bb89eac24d6f494589d (diff) |
dev
-rw-r--r-- | development.md | 1 | ||||
-rw-r--r-- | src/tab.rs | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/development.md b/development.md index ae340f8..32a6011 100644 --- a/development.md +++ b/development.md @@ -617,6 +617,7 @@ New view: Tree ! Toggle with 't', fold with 'z'. Navigate normally. - [x] FIX: enter a dir from normal mode shouldn't set mode tree - [x] Use a generic trait for movements - [x] FIX: first line position for tree + - [ ] FIX: changing sortkind in tree mode dosn't change first line - [ ] FIX: copying/moving 0B files does nothing - [ ] test everything - [ ] refactor @@ -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); } } |