Almost done terminal emulator

This commit is contained in:
Zachary Yedidia
2019-01-11 14:49:22 -05:00
parent 7544809f77
commit 1ca8d61a75
10 changed files with 231 additions and 132 deletions

View File

@@ -2,7 +2,6 @@ package views
import (
"fmt"
"log"
"strings"
)
@@ -440,7 +439,6 @@ func (n *Node) unsplit(i int, h bool) {
copy(n.children[i:], n.children[i+1:])
n.children[len(n.children)-1] = nil
n.children = n.children[:len(n.children)-1]
log.Println(len(n.children))
nonrs, numr := n.getResizeInfo(h)
if numr == 0 {
@@ -475,7 +473,6 @@ func (n *Node) Unsplit() {
}
if n.parent.IsLeaf() {
log.Println("destroy parent")
n.parent.Unsplit()
}
}