summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--Plugins/Monitors/Common.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Plugins/Monitors/Common.hs b/Plugins/Monitors/Common.hs
index 9217144..bbc9c39 100644
--- a/Plugins/Monitors/Common.hs
+++ b/Plugins/Monitors/Common.hs
@@ -253,9 +253,9 @@ floatToPercent n =
stringParser :: Pos -> B.ByteString -> String
stringParser (x,y) =
- li x . words . li y . lines . B.unpack
+ B.unpack . li x . B.words . li y . B.lines
where li i l | length l >= i = l !! i
- | otherwise = []
+ | otherwise = B.empty
setColor :: String -> Selector (Maybe String) -> Monitor String
setColor str s =