From ebd7afed443763599b7a04d5570fd0950bc24f44 Mon Sep 17 00:00:00 2001 From: Kitsu Date: Sun, 28 Apr 2024 12:58:50 -0300 Subject: [PATCH] fix: avoid child area overflow on split --- helix-view/src/tree.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helix-view/src/tree.rs b/helix-view/src/tree.rs index b7ad5aa9de05e..354c63e42bd3b 100644 --- a/helix-view/src/tree.rs +++ b/helix-view/src/tree.rs @@ -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