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:
commit
225cd3cc60
@ -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{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user