From a4cc5a4146694ae11fdabc2d46deb3f0f947e266 Mon Sep 17 00:00:00 2001 From: Dmitry Maluka Date: Wed, 5 Aug 2020 00:33:16 +0200 Subject: [PATCH] Fix erased vertical dividing line (#1810) Fix the 1st part of #1773: the dividing line between vertical splits is not displayed if the split on the left contains other splits, i.e. is not a leaf node. --- internal/display/uiwindow.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/display/uiwindow.go b/internal/display/uiwindow.go index b8895885..19ce872b 100644 --- a/internal/display/uiwindow.go +++ b/internal/display/uiwindow.go @@ -38,15 +38,14 @@ func (w *UIWindow) drawNode(n *views.Node) { } for i, c := range cs { - if c.IsLeaf() && c.Kind == views.STVert { + if c.Kind == views.STVert { if i != len(cs)-1 { for h := 0; h < c.H; h++ { screen.SetContent(c.X+c.W, c.Y+h, divchar, combc, dividerStyle) } } - } else { - w.drawNode(c) } + w.drawNode(c) } }