summaryrefslogtreecommitdiff
path: root/tab.go
diff options
context:
space:
mode:
Diffstat (limited to 'tab.go')
-rw-r--r--tab.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/tab.go b/tab.go
index 702e99f..4ed5384 100644
--- a/tab.go
+++ b/tab.go
@@ -12,7 +12,9 @@ func (n *Node) NewTab(text string) *Node {
var a toolkit.Action
a.Type = toolkit.Add
+ a.Title = text
newaction(&a, newNode, n)
- return newNode
+ newBox := newNode.NewBox(text, true)
+ return newBox
}