1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-02-09 13:47:11 +02:00

fixing up commit message deletion

This commit is contained in:
Jesse Duffield 2018-05-26 16:08:08 +10:00
parent 112893f73c
commit 06713f608b
2 changed files with 11 additions and 0 deletions

9
gui.go
View File

@ -137,6 +137,15 @@ func keybindings(g *gocui.Gui) error {
if err := g.SetKeybinding("branches", gocui.KeySpace, gocui.ModNone, handleBranchPress); err != nil {
return err
}
if err := g.SetKeybinding("", '∑', gocui.ModNone, handleLogState); err != nil {
return err
}
return nil
}
func handleLogState(g *gocui.Gui, v *gocui.View) error {
devLog("state is:", state)
devLog("previous view:", state.PreviousView)
return nil
}

View File

@ -24,7 +24,9 @@ func returnFocus(g *gocui.Gui, v *gocui.View) error {
func switchFocus(g *gocui.Gui, oldView, newView *gocui.View) error {
if oldView != nil {
oldView.Highlight = false
devLog("setting previous view to ")
state.PreviousView = oldView.Name()
devLog(state.PreviousView)
}
newView.Highlight = true
devLog(newView.Name())