summaryrefslogtreecommitdiff
path: root/debug.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-08 18:43:48 -0600
committerJeff Carr <[email protected]>2025-02-08 18:43:48 -0600
commitba629f1892ff99e40f8c3419e3ae1eaf7ed4c71d (patch)
treee7c6a8bbd73fda7f6877616ceef94ec941788a3e /debug.go
parentbff0943dc51dde0545b9e1a1515df06c44017d70 (diff)
things resized
Diffstat (limited to 'debug.go')
-rw-r--r--debug.go12
1 files changed, 2 insertions, 10 deletions
diff --git a/debug.go b/debug.go
index c4a0bfb..dbcccc3 100644
--- a/debug.go
+++ b/debug.go
@@ -5,7 +5,6 @@ package main
import (
"fmt"
- "strings"
"github.com/awesome-gocui/gocui"
"go.wit.com/log"
@@ -83,16 +82,9 @@ func (tk *guiWidget) dumpWidget(s string) {
}
var end string
if tk.node.WidgetType == widget.Box {
- end = fmt.Sprintf("%-8s %-8s %s", tk.node.WidgetType, tk.cuiName, tk.node.State.Direction.String())
+ end = fmt.Sprintf("%-8s %-8s %s %s", tk.node.WidgetType, tk.cuiName, tk.node.State.Direction.String(), tk.String())
} else {
- curval := strings.TrimSpace(tk.node.ProgName())
- if curval == "" {
- curval = strings.TrimSpace(tk.node.GetLabel())
- }
- if curval == "" {
- curval = strings.TrimSpace(tk.labelN)
- }
- end = fmt.Sprintf("%-8s %-8s %s", tk.node.WidgetType, tk.cuiName, curval)
+ end = fmt.Sprintf("%-8s %-8s %s", tk.node.WidgetType, tk.cuiName, tk.String())
}
log.Log(GOCUI, s1, s, end)
}