summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-04-23 07:37:24 -0500
committerJeff Carr <[email protected]>2023-04-23 07:37:24 -0500
commit2d4d2b6b3e115a86a10f98c20de0e4e82be519c2 (patch)
tree4cab36495872e70220e47b1790189249c3e2bcdc /common.go
parentaeb998eea5ef67c1c87664340b89b5e415fb0747 (diff)
actually ran again without crashing
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'common.go')
-rw-r--r--common.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/common.go b/common.go
index 4b5d721..36fd17a 100644
--- a/common.go
+++ b/common.go
@@ -103,7 +103,7 @@ func (n *Node) Set(val any) {
func (n *Node) AppendText(str string) {
var a toolkit.Action
a.ActionType = toolkit.SetText
- tmp := n.widget.S + str
+ tmp := n.S + str
log(debugChange, "AppendText() value =", tmp)
a.S = tmp
n.Text = tmp
@@ -111,7 +111,7 @@ func (n *Node) AppendText(str string) {
}
func (n *Node) GetText() string {
- return n.widget.S
+ return n.S
}
/*