summaryrefslogtreecommitdiffstats
path: root/pkg/gui/patch_options_panel.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2019-11-10 15:24:20 +1100
committerJesse Duffield <jessedduffield@gmail.com>2019-11-10 16:18:25 +1100
commitcd17b46b55e312b3ba4e3ab9d3d96a8eeb20fded (patch)
treee35db3d358e3937f5ac960802775ccbdb29581a6 /pkg/gui/patch_options_panel.go
parentd0d92c7697c311071e2fc4b5cc9fa9278a9c300a (diff)
reset patch builder when we've escaped from the building phase and nothing has been added
Diffstat (limited to 'pkg/gui/patch_options_panel.go')
-rw-r--r--pkg/gui/patch_options_panel.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/patch_options_panel.go b/pkg/gui/patch_options_panel.go
index 748f70365..52974bf8b 100644
--- a/pkg/gui/patch_options_panel.go
+++ b/pkg/gui/patch_options_panel.go
@@ -17,7 +17,7 @@ func (o *patchMenuOption) GetDisplayStrings(isFocused bool) []string {
}
func (gui *Gui) handleCreatePatchOptionsMenu(g *gocui.Gui, v *gocui.View) error {
- if gui.GitCommand.PatchManager.IsEmpty() {
+ if !gui.GitCommand.PatchManager.CommitSelected() {
return gui.createErrorPanel(gui.g, gui.Tr.SLocalize("NoPatchError"))
}