diff options
author | Raúl Benencia <rul@kalgan.cc> | 2013-08-25 19:55:17 -0300 |
---|---|---|
committer | Raúl Benencia <rul@kalgan.cc> | 2013-08-25 19:55:17 -0300 |
commit | 89cd31ce1275bee6c8da8b3d9f4b00155a2e5fd2 (patch) | |
tree | 7a8f21de0ce363741925a24eb7982f26701b69a3 /State.hs | |
parent | 910d30227082dee795d0f32a99a5f972150f13c9 (diff) |
Added a couple of hooks
Diffstat (limited to 'State.hs')
-rw-r--r-- | State.hs | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |