Fix SplitTree tab index

Fixes #392
This commit is contained in:
Zachary Yedidia
2016-09-29 14:23:25 -04:00
parent 32cd94b88f
commit 0293b774f3

View File

@@ -44,6 +44,7 @@ func NewTabFromView(v *View) *Tab {
// SetNum sets all this tab's views to have the correct tab number
func (t *Tab) SetNum(num int) {
t.tree.tabNum = num
for _, v := range t.views {
v.TabNum = num
}