From 1d67b014cb5f1842efe37de93d47e97805c74d9f Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Thu, 26 Jun 2014 15:18:48 +0100 Subject: [PATCH] Make compatible with go 1.1 - fixes #1 --- fs/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/config.go b/fs/config.go index ebba90505..dbd00c7a6 100644 --- a/fs/config.go +++ b/fs/config.go @@ -147,7 +147,7 @@ func Command(commands []string) byte { if len(result) != 1 { continue } - i := strings.IndexByte(optString, result[0]) + i := strings.Index(optString, string(result[0])) if i >= 0 { return result[0] }