aboutsummaryrefslogtreecommitdiff
path: root/helix-view
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-04-08 07:54:55 +0000
committerBlaž Hrastnik2021-04-08 13:34:06 +0000
commit52da68e49a582f960ebf3ec26ae3279b102b01f2 (patch)
tree8ceeb76c40738ad7a39cf1d249deef16c1623fde /helix-view
parent9f318a852909439190050a0cd157938477f4639b (diff)
Render a separator between vertical splits.
Diffstat (limited to 'helix-view')
-rw-r--r--helix-view/src/tree.rs5
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