This issue is fixed in `brick-0.64.2`.
This commit is contained in:
Brent Yorgey 2021-10-22 11:55:32 -05:00
parent b72e09edb1
commit cdd3aff892
3 changed files with 4 additions and 10 deletions

View File

@ -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 [] ->

View File

@ -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

View File

@ -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,