1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-05-29 23:17:32 +02:00

Merge pull request #2412 from Ryooooooga/disable-help-on-suggestions

This commit is contained in:
Jesse Duffield 2023-02-11 10:52:49 +11:00 committed by GitHub
commit 225cd3cc60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,8 +50,13 @@ func uniqueBindings(bindings []*types.Binding) []*types.Binding {
} }
func (gui *Gui) handleCreateOptionsMenu() error { func (gui *Gui) handleCreateOptionsMenu() error {
context := gui.currentContext() ctx := gui.currentContext()
bindings := gui.getBindings(context) // Don't show menu while displaying popup.
if ctx.GetKind() == types.PERSISTENT_POPUP || ctx.GetKind() == types.TEMPORARY_POPUP {
return nil
}
bindings := gui.getBindings(ctx)
menuItems := slices.Map(bindings, func(binding *types.Binding) *types.MenuItem { menuItems := slices.Map(bindings, func(binding *types.Binding) *types.MenuItem {
return &types.MenuItem{ return &types.MenuItem{