aboutsummaryrefslogtreecommitdiff
path: root/State.hs
diff options
context:
space:
mode:
authorRaúl Benencia <rul@kalgan.cc>2013-08-25 19:55:17 -0300
committerRaúl Benencia <rul@kalgan.cc>2013-08-25 19:55:17 -0300
commit89cd31ce1275bee6c8da8b3d9f4b00155a2e5fd2 (patch)
tree7a8f21de0ce363741925a24eb7982f26701b69a3 /State.hs
parent910d30227082dee795d0f32a99a5f972150f13c9 (diff)
Added a couple of hooks
Diffstat (limited to 'State.hs')
-rw-r--r--State.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/State.hs b/State.hs
index 7ff8359..57b6258 100644
--- a/State.hs
+++ b/State.hs
@@ -108,6 +108,7 @@ incrementSelectedRow st | (selectedRow st) < limit = case (mode st) of
indexState' = (indexState st) { selectedRowIn = sr + 1 }
in
st { indexState = indexState' }
+ _ -> st
| otherwise = st
where
limit' = case (mode st) of
@@ -130,6 +131,7 @@ decrementSelectedRow st | (selectedRow st) > 0 = case (mode st) of
indexState' = (indexState st) { selectedRowIn = sr - 1 }
in
st { indexState = indexState' }
+ _ -> st
| otherwise = st
selectedRow st = case (mode st) of
nihil fit ex nihilo