1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-04 03:48:07 +02:00

always attempt to discard changes from current file

This commit is contained in:
Jesse Duffield 2019-03-23 12:34:24 +11:00
parent acfc961909
commit 09b7ae21bc

View File

@ -529,6 +529,11 @@ func (gui *Gui) handleCreateDiscardMenu(g *gocui.Gui, v *gocui.View) error {
}
handleMenuPress := func(index int) error {
file, err := gui.getSelectedFile(g)
if err != nil {
return err
}
if err := options[index].handler(file); err != nil {
return err
}