aboutsummaryrefslogtreecommitdiff
path: root/src/Lazymail/Screen.hs
diff options
context:
space:
mode:
authorRaúl Benencia <rul@kalgan.cc>2013-09-05 20:34:56 -0300
committerRaúl Benencia <rul@kalgan.cc>2013-09-05 20:34:56 -0300
commite3a455fc3791539275fdb6aff003ffa8460f8850 (patch)
treecddd898f1264c5f225b3845765b3c82431e5fe8c /src/Lazymail/Screen.hs
parent3bd3fd2c6eae2f36f69f247403421e8cf8226394 (diff)
rename scrolling functions
Diffstat (limited to 'src/Lazymail/Screen.hs')
-rw-r--r--src/Lazymail/Screen.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Lazymail/Screen.hs b/src/Lazymail/Screen.hs
index 699f84e..d6937dd 100644
--- a/src/Lazymail/Screen.hs
+++ b/src/Lazymail/Screen.hs
@@ -231,11 +231,11 @@ handleEvent = loop where
case ev' of
EventCharacter 'q' -> EH.previousMode (mode st)
- EventSpecialKey KeyUpArrow -> EH.decSelectedRow (mode st)
- EventCharacter 'k' -> EH.decSelectedRow (mode st)
+ EventSpecialKey KeyUpArrow -> EH.scrollUp (mode st)
+ EventCharacter 'k' -> EH.scrollUp (mode st)
- EventSpecialKey KeyDownArrow -> EH.incSelectedRow (mode st)
- EventCharacter 'j' -> EH.incSelectedRow (mode st)
+ EventSpecialKey KeyDownArrow -> EH.scrollDown (mode st)
+ EventCharacter 'j' -> EH.scrollDown (mode st)
EventCharacter '\n' -> EH.changeMode (mode st)
EventSpecialKey KeyRightArrow -> EH.changeMode (mode st)
nihil fit ex nihilo