From 4623f0d63c31595055c8cb85677fe9c1e756f797 Mon Sep 17 00:00:00 2001 From: aditya-K2 Date: Fri, 12 Nov 2021 14:06:51 +0530 Subject: [PATCH] RENAME kMap -> FUNC_MAP this naming makes more sense --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index e817434..3d06d48 100644 --- a/main.go +++ b/main.go @@ -54,7 +54,7 @@ func main() { return UI.expandedView.GetInnerRect() }) - var kMap = map[string]func(){ + var FUNC_MAP = map[string]func(){ "showChildrenContent": func() { r, _ := UI.expandedView.GetSelection() if !InsidePlaylist { @@ -160,11 +160,11 @@ func main() { }, } - config.GenerateKeyMap(kMap) + config.GenerateKeyMap(FUNC_MAP) UI.expandedView.SetInputCapture(func(e *tcell.EventKey) *tcell.EventKey { if val, ok := config.KEY_MAP[int(e.Rune())]; ok { - kMap[val]() + FUNC_MAP[val]() return nil } else { return e