From b3491f4e37d330b2d3f51b2b430f84d8c1133702 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Thu, 28 May 2026 19:20:17 +0200 Subject: [PATCH] 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. --- pkg/gui/options_map.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/gui/options_map.go b/pkg/gui/options_map.go index b4094acee..962187bff 100644 --- a/pkg/gui/options_map.go +++ b/pkg/gui/options_map.go @@ -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 {