Simplify upgrade copying logic

This commit is contained in:
Ben Gamari
2020-07-07 13:39:58 -04:00
committed by Julian Ospald
parent da94fa5f92
commit 2be1aa2707
2 changed files with 11 additions and 18 deletions

View File

@@ -71,9 +71,11 @@ ui AppState {..} =
)
)
<=> ( withAttr "help"
$ foldr1 (\x y -> x <+> str " " <+> y)
. (++ [str "↑↓:Navigation"])
$ (fmap (\(c, s, _) -> str (c : ':' : s)) keyHandlers)
. txtWrap
. T.pack
. foldr1 (\x y -> x <> " " <> y)
. (++ ["↑↓:Navigation"])
$ (fmap (\(c, s, _) -> (c : ':' : s)) keyHandlers)
)
where