diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2011-01-22 03:33:08 +0100 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2011-01-22 03:33:08 +0100 |
commit | e909c3b8c6887b2fcee1debf34499794e5accac1 (patch) | |
tree | 4fd055de9b8c2ad13bb13b99c1d2248f6000079e /src/Plugins | |
parent | afc503e0697046029a5fcbdfe313cbba302b8421 (diff) | |
download | xmobar-e909c3b8c6887b2fcee1debf34499794e5accac1.tar.gz xmobar-e909c3b8c6887b2fcee1debf34499794e5accac1.tar.bz2 |
Bug fix: don't get confused by align separators in input (issue 14)
This solves the common case of a template separator character (such as
{) popping up in xmobar's input (e.g., inside a window title) and
confusing the parser.
Diffstat (limited to 'src/Plugins')
-rw-r--r-- | src/Plugins/StdinReader.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Plugins/StdinReader.hs b/src/Plugins/StdinReader.hs index 2ee217e..935d76a 100644 --- a/src/Plugins/StdinReader.hs +++ b/src/Plugins/StdinReader.hs @@ -26,7 +26,8 @@ data StdinReader = StdinReader instance Exec StdinReader where start StdinReader cb = do - cb =<< catch (hGetLineSafe stdin) (\(SomeException e) -> do hPrint stderr e; return "") + cb =<< catch (hGetLineSafe stdin) + (\(SomeException e) -> do hPrint stderr e; return "") eof <- hIsEOF stdin if eof then exitImmediately ExitSuccess |