mirror of
https://github.com/zyedidia/micro
synced 2024-11-05 17:41:24 +00:00
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.
This commit is contained in:
parent
9a3fb52b42
commit
a4cc5a4146
1 changed files with 2 additions and 3 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue