diff options
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 } |
