From 6cd9e129296133418d01b82cd5082e863f5ee490 Mon Sep 17 00:00:00 2001 From: Kevin Lamonte Date: Mon, 25 Nov 2019 07:16:01 -0600 Subject: [PATCH] #68 fix ColorTheme.load() --- src/jexer/bits/ColorTheme.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. -- 2.27.0