cosmetics

This commit is contained in:
yory8 2019-03-22 22:08:54 +01:00
parent 615d5d303a
commit ec9d4f5eb3

View file

@ -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)
}