mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-05 00:59:19 +02:00
remove y/n options from prompt
This commit is contained in:
@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user