From 02bd481bacc94546a2766f590024d9b61fbf7a3d Mon Sep 17 00:00:00 2001
From: "Mike JS. Choi" <mkchoi212@icloud.com>
Date: Thu, 31 May 2018 16:05:06 -0500
Subject: [PATCH] Fix nil binding map bug

---
 key/key.go | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/key/key.go b/key/key.go
index 169e44d..d1b1932 100644
--- a/key/key.go
+++ b/key/key.go
@@ -85,7 +85,9 @@ func LoadSettings() (b Binding, err error) {
 
 // parseSettings looks for `$HOME/.fac.yml` and parses it into a `Binding` value
 // If the file does not exist, it returns the `defaultBinding`
-func parseSettings() (b Binding) {
+func parseSettings() Binding {
+	b := make(Binding)
+
 	usr, err := currentUser()
 	if err != nil {
 		fmt.Println(color.Yellow(color.Regular, "fac: %s. Default key-bindings will be used", err.Error()))
@@ -105,7 +107,7 @@ func parseSettings() (b Binding) {
 		return defaultBinding
 	}
 
-	return
+	return b
 }
 
 // consolidate takes the user's key-binding settings and fills the missings key-binds