Skip to content

Commit

Permalink
fix: avoid child area overflow on split
Browse files Browse the repository at this point in the history
  • Loading branch information
l4l committed Apr 28, 2024
1 parent a1d7997 commit ebd7afe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helix-view/src/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -419,10 +419,10 @@ impl Tree {
let mut area = Rect::new(
child_x,
container.area.y,
width,
width.saturating_sub(inner_gap),
container.area.height,
);
child_x += width + inner_gap;
child_x += width;

// last child takes the remaining width because we can get uneven
// space from rounding
Expand Down

0 comments on commit ebd7afe

Please sign in to comment.