mirror of
https://github.com/swarm-game/swarm.git
synced 2024-09-11 14:46:33 +03:00
remove https://github.com/jtdaugherty/brick/issues/337 workaround
This issue is fixed in `brick-0.64.2`.
This commit is contained in:
parent
b72e09edb1
commit
cdd3aff892
@ -1,7 +1,3 @@
|
||||
-----------------------------------------------------------------------------
|
||||
|
||||
-----------------------------------------------------------------------------
|
||||
|
||||
-- |
|
||||
-- Module : Swarm.TUI.List
|
||||
-- Copyright : Brent Yorgey
|
||||
@ -43,10 +39,8 @@ handleListEventWithSeparators e isSep theList =
|
||||
BL.listMoveToBeginning theList
|
||||
V.EvKey V.KEnd [] ->
|
||||
return $
|
||||
listFindByStrategy bwdInclusive isItem
|
||||
-- work around https://github.com/jtdaugherty/brick/issues/337 for now
|
||||
$
|
||||
BL.listMoveTo (max 0 $ length (BL.listElements theList) - 1) theList
|
||||
listFindByStrategy bwdInclusive isItem $
|
||||
BL.listMoveToEnd theList
|
||||
V.EvKey V.KPageDown [] ->
|
||||
listFindByStrategy bwdInclusive isItem <$> BL.listMovePageDown theList
|
||||
V.EvKey V.KPageUp [] ->
|
||||
|
@ -1,6 +1,6 @@
|
||||
resolver: lts-18.12
|
||||
extra-deps:
|
||||
- brick-0.64
|
||||
- brick-0.64.2
|
||||
- word-wrap-0.5
|
||||
- hashable-1.3.4.1
|
||||
- git: https://github.com/colinhect/hsnoise
|
||||
|
@ -91,7 +91,7 @@ library
|
||||
build-depends: base >= 4.14 && < 4.16,
|
||||
aeson >= 1.5 && < 1.6,
|
||||
array >= 0.5.4 && < 0.6,
|
||||
brick >= 0.64 && < 0.65,
|
||||
brick >= 0.64.2 && < 0.65,
|
||||
clock >= 0.8.2 && < 0.9,
|
||||
containers >= 0.6.2 && < 0.7,
|
||||
directory >= 1.3 && < 1.4,
|
||||
|
Loading…
Reference in New Issue
Block a user