summaryrefslogtreecommitdiffstats
path: root/pkg/gui/commit_files_panel.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-01-15 12:04:00 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-01-15 14:15:41 +1100
commitcdcfeb396fda1e61dee9b6d88ab4659152a10948 (patch)
tree6b796b8ffc9e30c08e5249e936feacca76f8d8ba /pkg/gui/commit_files_panel.go
parentf5b9ad8c002eb359959d41f4cd494007ca3e9bf3 (diff)
stop refreshing the screen so much
Diffstat (limited to 'pkg/gui/commit_files_panel.go')
-rw-r--r--pkg/gui/commit_files_panel.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/pkg/gui/commit_files_panel.go b/pkg/gui/commit_files_panel.go
index e28c5bd7b..7e1ecd130 100644
--- a/pkg/gui/commit_files_panel.go
+++ b/pkg/gui/commit_files_panel.go
@@ -226,16 +226,12 @@ func (gui *Gui) enterCommitFile(opts OnFocusOpts) error {
if gui.Git.Patch.PatchManager.Active() && gui.Git.Patch.PatchManager.To != gui.State.CommitFileManager.GetParent() {
return gui.ask(askOpts{
- title: gui.Tr.DiscardPatch,
- prompt: gui.Tr.DiscardPatchConfirm,
- handlersManageFocus: true,
+ title: gui.Tr.DiscardPatch,
+ prompt: gui.Tr.DiscardPatchConfirm,
handleConfirm: func() error {
gui.Git.Patch.PatchManager.Reset()
return enterTheFile()
},
- handleClose: func() error {
- return gui.pushContext(gui.State.Contexts.CommitFiles)
- },
})
}