diff options
| author | Jeff Carr <[email protected]> | 2024-01-29 23:01:39 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-29 23:01:39 -0600 |
| commit | 5ef1bd10213a8e6a8b96ed1ca67a91ceb7f026fd (patch) | |
| tree | 6659d0d1ce6f628577267bc0b03e0bdf3976bd16 /keybindings.go | |
| parent | d97ce2aecc08cdaae49b5885453deee9260aaf06 (diff) | |
window widgets are being displayed
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'keybindings.go')
| -rw-r--r-- | keybindings.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/keybindings.go b/keybindings.go index d570367..b513424 100644 --- a/keybindings.go +++ b/keybindings.go @@ -81,7 +81,8 @@ func addDebugKeys(g *gocui.Gui) { var w *guiWidget w = me.treeRoot.TK.(*guiWidget) if redoWidgets { - redoWindows(0, 0) + wRoot := me.treeRoot.TK.(*guiWidget) + wRoot.redoWindows(0, 0) redoWidgets = false } else { w.hideWidgets() @@ -126,7 +127,8 @@ func addDebugKeys(g *gocui.Gui) { // redo windows g.SetKeybinding("", 'w', gocui.ModNone, func(g *gocui.Gui, v *gocui.View) error { - redoWindows(0, 0) + wRoot := me.treeRoot.TK.(*guiWidget) + wRoot.redoWindows(0, 0) return nil }) |
