From bbe87a0b9e019c95e7c385ede99db862a7dad541 Mon Sep 17 00:00:00 2001 From: Will Eccles Date: Fri, 5 Apr 2019 08:26:24 -0400 Subject: strings.fieldsfunc -> strings.fields --- input.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/input.go b/input.go index 11490af..2cc9466 100644 --- a/input.go +++ b/input.go @@ -292,7 +292,7 @@ func inputKittyTerm(filename string) ([]color.Color, error) { colors := make([]color.Color, 0) for _, l := range colorlines { // Assuming the color to be the rightmost half of the last instance of space/tab - splits := strings.FieldsFunc(l, KittySplit) + splits := strings.Fields(l) colorstring := splits[len(splits)-1] col, err := parseColor(colorstring) if err != nil { @@ -303,7 +303,3 @@ func inputKittyTerm(filename string) ([]color.Color, error) { return colors, nil } - -func KittySplit(r rune) bool { - return r == ' ' || r == '\t' -} -- cgit v1.2.3