From 13ce94032bf0e7891bd1c2f4c94a857226ec66ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Benencia?= Date: Wed, 11 Sep 2013 11:34:24 -0300 Subject: Fix color bug --- src/Lazymail/Screen.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Lazymail/Screen.hs') diff --git a/src/Lazymail/Screen.hs b/src/Lazymail/Screen.hs index a25c880..3d82768 100644 --- a/src/Lazymail/Screen.hs +++ b/src/Lazymail/Screen.hs @@ -87,7 +87,7 @@ screenLoop = do performUpdate :: LazymailUpdate LazymailState performUpdate = do st <- get - liftUpdate $ clearMain (scrRowsAsInteger st) (screenColumns st) + liftUpdate $ clearMain (baseColorID . colorStyle $ st) (scrRowsAsInteger st) (screenColumns st) drawMode (mode st) drawStatus get @@ -141,7 +141,8 @@ drawSimpleRow st path str | (mode st) == MaildirMode = drawString $ normalizeLen drawCroppedString st str {- Empty the whole window. Useful when changing modes. -} -clearMain rows columns = do +clearMain baseCol rows columns = do + setColor baseCol drawEmptyLine 0 moveCursor 0 0 where -- cgit v1.2.3