summaryrefslogtreecommitdiff
path: root/label.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-12-31 07:40:53 -0600
committerJeff Carr <[email protected]>2023-12-31 07:40:53 -0600
commit92441e8c635aa3e1d1f148e4780c0c323f4b0f95 (patch)
tree7170a290962840af2486316c224462d52ddc3e0c /label.go
parent50f41a3ec5441396666e1108183ac02363c4bd18 (diff)
continue move to remove tabs
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'label.go')
-rw-r--r--label.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/label.go b/label.go
index d298d2d..0414bc5 100644
--- a/label.go
+++ b/label.go
@@ -7,6 +7,8 @@ import (
func (parent *Node) NewLabel(text string) *Node {
newNode := parent.newNode(text, toolkit.Label)
a := newAction(newNode, toolkit.Add)
+ a.Text = text
+ a.S = text
sendAction(a)
return newNode
}