Split improvements

This commit is contained in:
Zachary Yedidia
2019-01-05 16:27:04 -05:00
parent 23f5e9c770
commit e4e99b03d3
7 changed files with 125 additions and 35 deletions

View File

@@ -31,6 +31,7 @@ func NewBufEditPane(x, y, width, height int, b *buffer.Buffer) *EditPane {
func NewTabPane(width, height int, b *buffer.Buffer) *TabPane {
t := new(TabPane)
t.Node = views.NewRoot(0, 0, width, height)
t.Window = display.NewUIWindow(t.Node)
e := NewBufEditPane(0, 0, width, height, b)
e.splitID = t.ID()