diff options
author | qkzk <qu3nt1n@gmail.com> | 2023-09-30 22:44:51 +0200 |
---|---|---|
committer | qkzk <qu3nt1n@gmail.com> | 2023-09-30 22:44:51 +0200 |
commit | ef928241cab78fa49ba76f76a692f79dc0751167 (patch) | |
tree | a2483521336793dcd9ccb4f0227c7badd84f5f2f /src/tab.rs | |
parent | 207346062c357938689efe3b2147b2615b6771c8 (diff) |
tree: refactor and avoid usize::MAX since it's gigantic
Diffstat (limited to 'src/tab.rs')
-rw-r--r-- | src/tab.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) } |