summaryrefslogtreecommitdiffstats
path: root/pkg/gui/commit_files_panel.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-03-28 12:52:45 +1100
committerJesse Duffield <jessedduffield@gmail.com>2020-03-28 13:19:35 +1100
commit517b7d02839ab87693f19ea571b8bd29f07fd00e (patch)
tree7ecdba06d030bcf8473c684b4fdd7a4a5c19875c /pkg/gui/commit_files_panel.go
parent0c0231c3e835ef93a7fe06a95c28bd00f1da6631 (diff)
fix up some things with the patch handling stuff
Diffstat (limited to 'pkg/gui/commit_files_panel.go')
-rw-r--r--pkg/gui/commit_files_panel.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/gui/commit_files_panel.go b/pkg/gui/commit_files_panel.go
index 7431bf464..810a732ec 100644
--- a/pkg/gui/commit_files_panel.go
+++ b/pkg/gui/commit_files_panel.go
@@ -209,7 +209,9 @@ func (gui *Gui) enterCommitFile(selectedLineIdx int) error {
return gui.createConfirmationPanel(gui.g, gui.getCommitFilesView(), false, gui.Tr.SLocalize("DiscardPatch"), gui.Tr.SLocalize("DiscardPatchConfirm"), func(g *gocui.Gui, v *gocui.View) error {
gui.GitCommand.PatchManager.Reset()
return enterTheFile(selectedLineIdx)
- }, nil)
+ }, func(g *gocui.Gui, v *gocui.View) error {
+ return gui.switchFocus(gui.g, nil, gui.getCommitFilesView())
+ })
}
return enterTheFile(selectedLineIdx)