summaryrefslogtreecommitdiff
path: root/node.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-03-30 08:51:33 -0500
committerJeff Carr <[email protected]>2023-03-30 08:51:33 -0500
commit0320ebe4bb49ea80761d77af80fa208157ffdb89 (patch)
tree6df3a9612aa081f476d1add018a456d332967ac4 /node.go
parent610e2adad1f30edf5f8408fa31c85224e476f4e0 (diff)
'hide' and 'show' works in gocui
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'node.go')
-rw-r--r--node.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/node.go b/node.go
index b0bad5c..d4be30b 100644
--- a/node.go
+++ b/node.go
@@ -43,6 +43,7 @@ func (n *Node) New(title string, t toolkit.WidgetType, custom func()) *Node {
func addNode(title string) *Node {
n := new(Node)
n.Name = title
+ n.Text = title
n.widget.Name = title
n.id = Config.counter
n.widget.Id = n.id