diff options
| author | Jeff Carr <[email protected]> | 2025-02-09 08:28:10 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-09 08:28:10 -0600 |
| commit | c5d9522c0b1d176ecea10b9347c65dc6d99e898e (patch) | |
| tree | fd6067d839e2a0f09ac106bc22f656266b2674ad /eventBindings.go | |
| parent | 4a009f79a23b9ce1ac9198fee2fb36a12c13ac60 (diff) | |
clip large windows
Diffstat (limited to 'eventBindings.go')
| -rw-r--r-- | eventBindings.go | 13 |
1 files changed, 13 insertions, 0 deletions
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 } |
