summaryrefslogtreecommitdiffstats
path: root/Core.hs
diff options
context:
space:
mode:
authorKierán Meinhardt <kieran.meinhardt@gmail.com>2020-09-22 23:40:00 +0200
committerKierán Meinhardt <kieran.meinhardt@gmail.com>2020-09-23 00:10:07 +0200
commitca8439b6787eb238d7b07544dfc728488f3c71b6 (patch)
tree0f812affaa5c569248ee2c1c7e8b39c6e8a405c7 /Core.hs
parent121d703bcd3ecbaba031499070907251b5eae1a9 (diff)
lint
Diffstat (limited to 'Core.hs')
-rw-r--r--Core.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Core.hs b/Core.hs
index d08f55c..53f619c 100644
--- a/Core.hs
+++ b/Core.hs
@@ -181,12 +181,12 @@ render0 _q@State{..} = do
map (Blessings.take screenWidth . Blessings.drop xoffset) $
take screenHeight $
headBuffer ++ drop yoffset treeBuffer
- buffer ++ take (screenHeight - length buffer) (repeat "~")
+ buffer ++ replicate (screenHeight - length buffer) "~"
redraw :: State -> IO ()
redraw q@State{..} = do
- hPutStr stdout $ map (sub '\t' ' ') $ "\ESC[H" ++ (pp $ mintercalate "\n" $ map eraseRight $ render0 q)
+ hPutStr stdout $ map (sub '\t' ' ') $ "\ESC[H" ++ pp (mintercalate "\n" $ map eraseRight $ render0 q)
hFlush stdout
where
sub x x' c = if c == x then x' else c