From 9b73b68f95399e90da501a0be9d751c7d893a413 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Thu, 27 Jun 2024 14:45:29 +0200 Subject: [PATCH] Turn off the highlight of the suggestions panel when it loses focus The highlight is normally turned off in HandleFocusLost, but that's not called when using ReplaceContext (and changing this would be a lot of work, it seems), so turn it off manually here for now. --- pkg/gui/controllers/suggestions_controller.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/gui/controllers/suggestions_controller.go b/pkg/gui/controllers/suggestions_controller.go index 90ac43107..a425f356e 100644 --- a/pkg/gui/controllers/suggestions_controller.go +++ b/pkg/gui/controllers/suggestions_controller.go @@ -71,6 +71,7 @@ func (self *SuggestionsController) GetKeybindings(opts types.KeybindingsOpts) [] func (self *SuggestionsController) switchToConfirmation() error { self.c.Views().Suggestions.Subtitle = "" + self.c.Views().Suggestions.Highlight = false return self.c.ReplaceContext(self.c.Contexts().Confirmation) }