diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2011-08-21 19:09:15 +0200 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2011-08-21 19:09:15 +0200 |
commit | 8afb450eb104e5335f4b1b976512842f7059142c (patch) | |
tree | 949e3ec6aba45ebf366c2d31c5edc0177995c195 /src/Xmobar.hs | |
parent | 5d5b4a4d7e07d20eec62b5650df5d55807741a4c (diff) | |
download | xmobar-8afb450eb104e5335f4b1b976512842f7059142c.tar.gz xmobar-8afb450eb104e5335f4b1b976512842f7059142c.tar.bz2 |
Show invalid input in case of parsing error in template
As a side-effect, parts without substitution vars will be displayed
as-is, fixing a bug reported by RC in the mailing list.
Diffstat (limited to 'src/Xmobar.hs')
-rw-r--r-- | src/Xmobar.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Xmobar.hs b/src/Xmobar.hs index cf912b7..eb7a1dd 100644 --- a/src/Xmobar.hs +++ b/src/Xmobar.hs @@ -120,7 +120,7 @@ eventLoop xc@(XConf d _ w fs c) vs = block $ do startCommand :: (Runnable,String,String) -> IO (Maybe ThreadId, TVar String) startCommand (com,s,ss) | alias com == "" = do var <- atomically $ newTVar is - atomically $ writeTVar var "Could not parse the template" + atomically $ writeTVar var (s ++ ss) return (Nothing,var) | otherwise = do var <- atomically $ newTVar is let cb str = atomically $ writeTVar var (s ++ str ++ ss) |