diff options
author | Moritz Poldrack <git@moritz.sh> | 2022-07-31 22:16:40 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-08-01 10:44:52 +0200 |
commit | aaf0a0c65673db4b94c0dc200d7394a192128da1 (patch) | |
tree | 44940936efff55b49a6d359d053f55c7ab824e4d /config/bindings.go | |
parent | 21dcd440f877192af128c00ca2acbabf68bb3ee3 (diff) | |
download | aerc-aaf0a0c65673db4b94c0dc200d7394a192128da1.tar.gz |
lint: apply new formatting rules
Run `make fmt`.
Signed-off-by: Moritz Poldrack <git@moritz.sh>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'config/bindings.go')
-rw-r--r-- | config/bindings.go | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/config/bindings.go b/config/bindings.go index 1833244b..fa9daa29 100644 --- a/config/bindings.go +++ b/config/bindings.go @@ -56,8 +56,8 @@ func MergeBindings(bindings ...*KeyBindings) *KeyBindings { } func (config AercConfig) MergeContextualBinds(baseBinds *KeyBindings, - contextType ContextType, reg string, bindCtx string) *KeyBindings { - + contextType ContextType, reg string, bindCtx string, +) *KeyBindings { bindings := baseBinds for _, contextualBind := range config.ContextualBinds { if contextualBind.ContextType != contextType { @@ -83,8 +83,8 @@ func (bindings *KeyBindings) Add(binding *Binding) { } func (bindings *KeyBindings) GetBinding( - input []KeyStroke) (BindingSearchResult, []KeyStroke) { - + input []KeyStroke, +) (BindingSearchResult, []KeyStroke) { incomplete := false // TODO: This could probably be a sorted list to speed things up // TODO: Deal with bindings that share a prefix @@ -165,9 +165,7 @@ func FormatKeyStrokes(keystrokes []KeyStroke) string { return sb.String() } -var ( - keyNames map[string]KeyStroke -) +var keyNames map[string]KeyStroke func ParseKeyStrokes(keystrokes string) ([]KeyStroke, error) { var strokes []KeyStroke |