From c5d9522c0b1d176ecea10b9347c65dc6d99e898e Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 9 Feb 2025 08:28:10 -0600 Subject: clip large windows --- eventBindings.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'eventBindings.go') diff --git a/eventBindings.go b/eventBindings.go index cb80a0f..65296a7 100644 --- a/eventBindings.go +++ b/eventBindings.go @@ -71,6 +71,19 @@ func theSuperMouse(g *gocui.Gui, v *gocui.View) error { // use this to test code ideas // put whatever you want here and hit '2' to activate it func theNotsure(g *gocui.Gui, v *gocui.View) error { log.Info("got to theNotsure(). now what? dark =", me.dark) + if me.debug { + log.Info("debugging off") + me.debug = false + } else { + log.Info("debugging on") + me.debug = true + } + win := findWindowUnderMouse() + if win != nil { + win.dumpWidget("found() win. redrawing window:") + win.redrawWindow(win.gocuiSize.w0, win.gocuiSize.h0) + } + return nil } -- cgit v1.2.3