summaryrefslogtreecommitdiffstats
path: root/src/tab.rs
diff options
context:
space:
mode:
authorqkzk <qu3nt1n@gmail.com>2023-11-05 18:37:16 +0100
committerqkzk <qu3nt1n@gmail.com>2023-11-05 18:37:16 +0100
commitcd52d2a0379b51861fd9b18a90db41809b655c68 (patch)
treecde881237ec0f642fc543fb48b621383f62199b7 /src/tab.rs
parent24047aeb4af565ba1eb25d6948aeec8ea83c7531 (diff)
tree select last. Ugly fix
Diffstat (limited to 'src/tab.rs')
-rw-r--r--src/tab.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tab.rs b/src/tab.rs
index e9c39e5..2abae8f 100644
--- a/src/tab.rs
+++ b/src/tab.rs
@@ -386,9 +386,8 @@ impl Tab {
/// Go to the last leaf.
pub fn tree_go_to_bottom_leaf(&mut self) -> Result<()> {
- self.directory.tree.set_required_height_to_max();
- self.directory.unselect_children();
- self.directory.go_to_bottom_leaf()
+ self.tree.select_last();
+ Ok(())
}
/// Returns the current path.