diff options
| author | Jeff Carr <[email protected]> | 2025-02-01 13:58:53 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-01 13:58:53 -0600 |
| commit | 417b3e5225cfdf00d116082832c44ea1aab93664 (patch) | |
| tree | 4d0e85aea4697c690b4022d6045f99ace73c6002 /eventBindings.go | |
| parent | e4f0524bdf5331d91c95c9cb89eb4f40138a0ab1 (diff) | |
use dumpWidget() where possible
Diffstat (limited to 'eventBindings.go')
| -rw-r--r-- | eventBindings.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/eventBindings.go b/eventBindings.go index b093718..ca25fde 100644 --- a/eventBindings.go +++ b/eventBindings.go @@ -4,7 +4,6 @@ package main import ( - "fmt" "syscall" "github.com/awesome-gocui/gocui" @@ -68,11 +67,11 @@ func theNotsure(g *gocui.Gui, v *gocui.View) error { w, h := g.MousePosition() for _, tk := range findByXY(w, h) { if tk.WidgetType == widget.Stdout { - log.Log(GOCUI, fmt.Sprintf("findByXY() '2' key %-8s wId=%4d at (%3d,%3d) %s", tk.WidgetType, tk.node.WidgetId, w, h, tk.node.String())) + tk.dumpWidget("theNotsure()") log.Info("skipping stdout") continue } - log.Log(GOCUI, fmt.Sprintf("findByXY() HIDDING %-8s wId=%4d at (%3d,%3d) %s", tk.WidgetType, tk.node.WidgetId, w, h, tk.node.String())) + tk.dumpWidget("theNotsure() HIDDING") tk.Hide() } return nil @@ -137,7 +136,7 @@ func openDebuggger(g *gocui.Gui, v *gocui.View) error { func theFind(g *gocui.Gui, v *gocui.View) error { w, h := g.MousePosition() for _, tk := range findByXY(w, h) { - log.Log(GOCUI, fmt.Sprintf("findByXY() 'f' key %-8s wId=%4d at (%3d,%3d) %s", tk.WidgetType, tk.node.WidgetId, w, h, tk.node.String())) + tk.dumpWidget("theFind()") } return nil } |
