From ef928241cab78fa49ba76f76a692f79dc0751167 Mon Sep 17 00:00:00 2001 From: qkzk Date: Sat, 30 Sep 2023 22:44:51 +0200 Subject: tree: refactor and avoid usize::MAX since it's gigantic --- src/tab.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tab.rs') diff --git a/src/tab.rs b/src/tab.rs index 9e8b4c5..252fe91 100644 --- a/src/tab.rs +++ b/src/tab.rs @@ -320,7 +320,7 @@ impl Tab { /// Go to the last leaf. pub fn tree_go_to_bottom_leaf(&mut self, colors: &Colors) -> Result<()> { - self.directory.tree.set_required_height(usize::MAX); + self.directory.tree.set_required_height_to_max(); self.directory.unselect_children(); self.directory.go_to_bottom_leaf(colors) } -- cgit v1.2.3