1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-04-21 12:16:54 +02:00

Merge pull request #2093 from jesseduffield/fix-hidden-suggestions

This commit is contained in:
Jesse Duffield 2022-08-07 19:30:43 +10:00 committed by GitHub
commit 70a46028e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 6 deletions

View File

@ -29,11 +29,12 @@ func NewSuggestionsContext(
BasicViewModel: viewModel, BasicViewModel: viewModel,
ListContextTrait: &ListContextTrait{ ListContextTrait: &ListContextTrait{
Context: NewSimpleContext(NewBaseContext(NewBaseContextOpts{ Context: NewSimpleContext(NewBaseContext(NewBaseContextOpts{
View: view, View: view,
WindowName: "suggestions", WindowName: "suggestions",
Key: SUGGESTIONS_CONTEXT_KEY, Key: SUGGESTIONS_CONTEXT_KEY,
Kind: types.PERSISTENT_POPUP, Kind: types.PERSISTENT_POPUP,
Focusable: true, Focusable: true,
HasUncontrolledBounds: true,
}), ContextCallbackOpts{ }), ContextCallbackOpts{
OnFocus: onFocus, OnFocus: onFocus,
OnFocusLost: onFocusLost, OnFocusLost: onFocusLost,

View File

@ -270,7 +270,10 @@ func (gui *Gui) suggestionsListContext() *context.SuggestionsContext {
}, },
nil, nil,
nil, nil,
nil, func(types.OnFocusLostOpts) error {
gui.deactivateConfirmationPrompt()
return nil
},
gui.c, gui.c,
) )
} }