summaryrefslogtreecommitdiffstats
path: root/pkg/gui/commit_files_panel.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-08-23 13:09:36 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-08-23 14:29:18 +1000
commit3eb3de3edcb882a12a888b3ec52f3f7848f9bbd9 (patch)
tree96597770bfb4dad586109d76353efc82d58629d7 /pkg/gui/commit_files_panel.go
parent94601b4dc951de9b1efa08120148d2d9766b637c (diff)
allow explicitly managing focus
Diffstat (limited to 'pkg/gui/commit_files_panel.go')
-rw-r--r--pkg/gui/commit_files_panel.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/gui/commit_files_panel.go b/pkg/gui/commit_files_panel.go
index 505beda0e..15d073785 100644
--- a/pkg/gui/commit_files_panel.go
+++ b/pkg/gui/commit_files_panel.go
@@ -185,8 +185,9 @@ func (gui *Gui) enterCommitFile(selectedLineIdx int) error {
if gui.GitCommand.PatchManager.Active() && gui.GitCommand.PatchManager.To != commitFile.Parent {
return gui.ask(askOpts{
- title: gui.Tr.SLocalize("DiscardPatch"),
- prompt: gui.Tr.SLocalize("DiscardPatchConfirm"),
+ title: gui.Tr.SLocalize("DiscardPatch"),
+ prompt: gui.Tr.SLocalize("DiscardPatchConfirm"),
+ handlersManageFocus: true,
handleConfirm: func() error {
gui.GitCommand.PatchManager.Reset()
return enterTheFile(selectedLineIdx)