summaryrefslogtreecommitdiffstats
path: root/src/tab.rs
diff options
context:
space:
mode:
authorqkzk <qu3nt1n@gmail.com>2023-09-30 22:44:51 +0200
committerqkzk <qu3nt1n@gmail.com>2023-09-30 22:44:51 +0200
commitef928241cab78fa49ba76f76a692f79dc0751167 (patch)
treea2483521336793dcd9ccb4f0227c7badd84f5f2f /src/tab.rs
parent207346062c357938689efe3b2147b2615b6771c8 (diff)
tree: refactor and avoid usize::MAX since it's gigantic
Diffstat (limited to 'src/tab.rs')
-rw-r--r--src/tab.rs2
1 files changed, 1 insertions, 1 deletions
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)
}