on master help sign in
outputPicture: factor out vector/list conversions
commit4953368affae454ceae48fca63ed162b9cc7aaa8 authorJonathan Daugherty <cygnus@foobox.com> dateMon 27 Aug 2018, 09:12 (8 years ago) parentd8ead32
1 file changed+1−2
src/Graphics/Vty/Output/Interface.hs+1−2
src/Graphics/Vty/Output/Interface.hs+1−2
@@ -177,8 +177,7 @@ outputPicture dc pic = liftIO $ do
177177 Nothing -> replicate (fromEnum $ regionHeight $ affectedRegion ops) True
178178 Just previousOps -> if affectedRegion previousOps /= affectedRegion ops
179179 then replicate (displayOpsRows ops) True
180− else zipWith (/=) (Vector.toList previousOps)
181− (Vector.toList ops)
180+ else Vector.toList $ Vector.zipWith (/=) previousOps ops
182181 -- build the Write corresponding to the output image
183182 out = (if manipCursor then writeHideCursor dc else mempty)
184183 `mappend` writeOutputOps urlsEnabled dc initialAttr diffs ops