aboutsummaryrefslogtreecommitdiff
path: root/State.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 /State.hs
parente4cc85a6fbf1eb3dcdc8304404183ea8db0a39ff (diff)
Filled email state
Diffstat (limited to 'State.hs')
-rw-r--r--State.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/State.hs b/State.hs
index e7f551e..b6561ff 100644
--- a/State.hs
+++ b/State.hs
@@ -41,7 +41,6 @@ data MaildirState = MaildirState {
data IndexState = IndexState {
selectedRowIn :: Int
- , selectedEmail :: Message
, selectedEmailPath :: FilePath
, selectedEmails :: [(FilePath, String)]
, scrollRowIn :: Int
@@ -57,6 +56,7 @@ data EmailState = EmailState {
scrollBufferEm :: [String]
, scrollRowEm :: Int
, emailLines :: [String]
+ , currentEmail :: Message
}
data ColorStyle = ColorStyle {
@@ -92,7 +92,6 @@ initialMaildirState = MaildirState {
initialIndexState = IndexState {
selectedRowIn = 0
- , selectedEmail = Message [] "Dummy email"
, selectedEmailPath = ""
, selectedEmails = []
, scrollRowIn = 0
@@ -104,6 +103,7 @@ initialEmailState = EmailState {
scrollBufferEm = []
, scrollRowEm = 0
, emailLines = []
+ , currentEmail = Message [] "Dummy email"
}
initialComposeState = ComposeState {
nihil fit ex nihilo