From ec9d4f5eb3e2eb1ff56e4c7fcfc0862daeac638d Mon Sep 17 00:00:00 2001 From: yory8 <> Date: Fri, 22 Mar 2019 22:08:54 +0100 Subject: [PATCH] cosmetics --- selector.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/selector.go b/selector.go index c0b7def..a4adab4 100644 --- a/selector.go +++ b/selector.go @@ -38,10 +38,10 @@ func dmenu(list []string, max int) (string, error) { // however, when it sends them back, we need a way to restore them to non literals guide := make(map[string]string) reprList := []string{} - for _, l := range list { - repr := fmt.Sprintf("%#v", l) + for _, original := range list { + repr := fmt.Sprintf("%#v", original) repr = repr[1 : len(repr)-1] // drop quotes - guide[repr] = l + guide[repr] = original reprList = append(reprList, repr) }