diff options
-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); } } |