From 384dd4b8eeb89a19f90821d4b0fde0d5f7951cbf Mon Sep 17 00:00:00 2001 From: Vuong <3168632+vuon9@users.noreply.github.com> Date: Tue, 23 Nov 2021 22:56:30 +0700 Subject: [PATCH] Fix wrong scope of var --- cointop/keybindings.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cointop/keybindings.go b/cointop/keybindings.go index 75c5a55..dbfedd7 100644 --- a/cointop/keybindings.go +++ b/cointop/keybindings.go @@ -54,7 +54,7 @@ func (ct *Cointop) ParseKeys(s string) (interface{}, tcell.ModMask) { s = strings.TrimSpace(s) keyName := keyMap(s) if len(s) > 1 { - keyName := strings.Replace(s, "+", "-", -1) + keyName = strings.Replace(s, "+", "-", -1) split := strings.Split(keyName, "-") if len(split) > 1 { @@ -98,7 +98,7 @@ func (ct *Cointop) ParseKeys(s string) (interface{}, tcell.ModMask) { } if key == nil { - log.Debugf("Could not map key descriptio '%s' to key", s) + log.Debugf("Could not map key '%s' to key", s) } return key, mod }