From: Kevin Lamonte Date: Mon, 25 Nov 2019 13:16:01 +0000 (-0600) Subject: #68 fix ColorTheme.load() X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=6cd9e129296133418d01b82cd5082e863f5ee490;p=fanfix-jexer.git #68 fix ColorTheme.load() --- diff --git a/src/jexer/bits/ColorTheme.java b/src/jexer/bits/ColorTheme.java index 640ea25..99eaa52 100644 --- a/src/jexer/bits/ColorTheme.java +++ b/src/jexer/bits/ColorTheme.java @@ -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.