mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-08-24 02:24:25 -05:00
Cleanup: filter out empty keybindings earlier
This doesn't make a difference for the behavior, it just looks strange to include the empty bindings first and then filter them out in the next statement.
This commit is contained in:
@@ -46,7 +46,7 @@ func (self *OptionsMapMgr) renderContextOptionsMap() {
|
||||
}))
|
||||
|
||||
allBindings := append(currentContextBindings, lo.Filter(globalBindings, func(b *types.Binding, _ int) bool {
|
||||
return len(b.Keys) == 0 || !currentContextKeys.Includes(b.Keys[0])
|
||||
return len(b.Keys) > 0 && !currentContextKeys.Includes(b.Keys[0])
|
||||
})...)
|
||||
|
||||
bindingsToDisplay := lo.Filter(allBindings, func(binding *types.Binding, _ int) bool {
|
||||
|
||||
Reference in New Issue
Block a user