diff options
Diffstat (limited to 'helix-view')
-rw-r--r-- | helix-view/src/tree.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/helix-view/src/tree.rs b/helix-view/src/tree.rs index e48f376a..b7c99e16 100644 --- a/helix-view/src/tree.rs +++ b/helix-view/src/tree.rs @@ -353,6 +353,9 @@ impl Tree { let width = area.width / len as u16; + let inner_gap = 1u16; + // let total_gap = inner_gap * (len as u16 - 1); + let mut child_x = area.x; for (i, child) in container.children.iter().enumerate() { @@ -362,7 +365,7 @@ impl Tree { width, container.area.height, ); - child_x += width; + child_x += width + inner_gap; // last child takes the remaining width because we can get uneven // space from rounding |