aboutsummaryrefslogtreecommitdiff
path: root/Screen.hs
diff options
context:
space:
mode:
authorRaúl Benencia <rul@kalgan.cc>2013-08-29 23:03:58 -0300
committerRaúl Benencia <rul@kalgan.cc>2013-08-29 23:03:58 -0300
commit6532d2b357160fe6a41ac4ec3aeb1283027d116e (patch)
treee1d12b8d75b0924f4499cee155164014bd763f27 /Screen.hs
parente4cc85a6fbf1eb3dcdc8304404183ea8db0a39ff (diff)
Filled email state
Diffstat (limited to 'Screen.hs')
-rw-r--r--Screen.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Screen.hs b/Screen.hs
index c2da7ac..26c5d9b 100644
--- a/Screen.hs
+++ b/Screen.hs
@@ -75,7 +75,7 @@ screenLoop = do
then screenLoop
else return ()
-{- Perform the screen for the next update. A clean is made -}
+{- Perform the screen update, by cleaning it first. -}
performUpdate :: LazymailUpdate LazymailState
performUpdate = do
st <- get
@@ -137,7 +137,7 @@ drawEmailHelper = do
drawEmailHeader
st <- get
- let body = getBody $ selectedEmail . indexState $ st
+ let body = getBody $ currentEmail . emailState $ st
let maxRows = if statusBar st then (scrRowsAsInteger st) - 1 else scrRowsAsInteger st
let emailLines = formatBody body $ (screenColumns st) - 1
liftUpdate $ drawBody ((curRowAsInteger st) + 4) (colPadAsInteger st) maxRows emailLines
@@ -146,7 +146,7 @@ drawEmailHelper = do
drawEmailHeader = do
st <- get
liftUpdate $ do
- let fs = getFields $ selectedEmail . indexState $ st
+ let fs = getFields $ currentEmail . emailState $ st
let cropWith xs = normalizeLen $ (screenColumns st) - (length xs)
let row = curRowAsInteger st
setColor $ headerColorID . colorStyle $ st
nihil fit ex nihilo