aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--input.go6
1 files changed, 1 insertions, 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'
-}