From 375451785c2f72da368e0cafaff9dc2e9f40a5b4 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Mon, 12 Jun 2023 17:43:04 +0200 Subject: [PATCH] Cleanup: remove extra OutsideFilterMode guard We are in the outsideFilterModeBindings section here; all of these handlers are wrapped in a OutsideFilterMode guard in a loop below. No need to add one manually here. --- pkg/gui/controllers/local_commits_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/gui/controllers/local_commits_controller.go b/pkg/gui/controllers/local_commits_controller.go index 5d796fca8..a8df8811c 100644 --- a/pkg/gui/controllers/local_commits_controller.go +++ b/pkg/gui/controllers/local_commits_controller.go @@ -100,7 +100,7 @@ func (self *LocalCommitsController) GetKeybindings(opts types.KeybindingsOpts) [ }, { Key: opts.GetKey(opts.Config.Commits.PasteCommits), - Handler: opts.Guards.OutsideFilterMode(self.paste), + Handler: self.paste, Description: self.c.Tr.PasteCommits, }, // overriding these navigation keybindings because we might need to load