From a6b4c084c56a2e4368fa431b9e361d8b9eb1a62e Mon Sep 17 00:00:00 2001 From: qkzk Date: Sun, 5 Nov 2023 17:11:40 +0100 Subject: tree select root --- src/tab.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/tab.rs') diff --git a/src/tab.rs b/src/tab.rs index 72e5ef2..ff111ad 100644 --- a/src/tab.rs +++ b/src/tab.rs @@ -533,8 +533,10 @@ impl Tab { /// Fold every child node in the tree. /// Recursively explore the tree and fold every node. Reset the display. pub fn tree_go_to_root(&mut self) -> Result<()> { - self.directory.tree.reset_required_height(); - self.tree_select_root() + // self.directory.tree.reset_required_height(); + // self.tree_select_root() + self.tree.select_root(); + Ok(()) } /// Select the first child of the current node and reset the display. -- cgit v1.2.3