summaryrefslogtreecommitdiff
path: root/keybindings.go
diff options
context:
space:
mode:
Diffstat (limited to 'keybindings.go')
-rw-r--r--keybindings.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/keybindings.go b/keybindings.go
index 902eed8..d570367 100644
--- a/keybindings.go
+++ b/keybindings.go
@@ -119,7 +119,14 @@ func addDebugKeys(g *gocui.Gui) {
g.SetKeybinding("", 'M', gocui.ModNone,
func(g *gocui.Gui, v *gocui.View) error {
w := me.treeRoot.TK.(*guiWidget)
- w.dumpTree()
+ w.dumpTree("M")
+ return nil
+ })
+
+ // redo windows
+ g.SetKeybinding("", 'w', gocui.ModNone,
+ func(g *gocui.Gui, v *gocui.View) error {
+ redoWindows(0, 0)
return nil
})