summaryrefslogtreecommitdiffstats
path: root/src/tab.rs
diff options
context:
space:
mode:
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.