#68 fix ColorTheme.load()
authorKevin Lamonte <kevin.lamonte@gmail.com>
Mon, 25 Nov 2019 13:16:01 +0000 (07:16 -0600)
committerKevin Lamonte <kevin.lamonte@gmail.com>
Mon, 25 Nov 2019 13:16:01 +0000 (07:16 -0600)
src/jexer/bits/ColorTheme.java

index 640ea25a194ddae7166c676574cde58fc84de7f0..99eaa522c880b1bfb7700e41e9aef44c25bbbb23 100644 (file)
@@ -234,8 +234,8 @@ public class ColorTheme {
                 // Invalid line.
                 continue;
             }
-            String key = line.substring(0, line.indexOf(':')).trim();
-            String text = line.substring(line.indexOf(':') + 1);
+            String key = line.substring(0, line.indexOf('=')).trim();
+            String text = line.substring(line.indexOf('=') + 1);
             setColorFromString(key, text);
         }
         // All done.