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

remove y/n options from prompt

This commit is contained in:
Jesse Duffield 2018-06-10 12:55:15 +10:00
parent 4a483c112e
commit 42cb8e4abf

View File

@ -102,7 +102,7 @@ func createConfirmationPanel(g *gocui.Gui, currentView *gocui.View, title, promp
} }
func setKeyBindings(g *gocui.Gui, handleYes, handleNo func(*gocui.Gui, *gocui.View) error) error { func setKeyBindings(g *gocui.Gui, handleYes, handleNo func(*gocui.Gui, *gocui.View) error) error {
renderString(g, "options", "esc/n: close, enter/y: confirm") renderString(g, "options", "esc: close, enter: confirm")
if err := g.SetKeybinding("confirmation", gocui.KeyEnter, gocui.ModNone, wrappedConfirmationFunction(handleYes)); err != nil { if err := g.SetKeybinding("confirmation", gocui.KeyEnter, gocui.ModNone, wrappedConfirmationFunction(handleYes)); err != nil {
return err return err
} }