mirror of
https://github.com/ilyakooo0/vty.git
synced 2024-11-25 19:22:08 +03:00
outputPicture: factor out vector/list conversions
This commit is contained in:
parent
d8ead321f9
commit
4953368aff
@ -177,8 +177,7 @@ outputPicture dc pic = liftIO $ do
|
||||
Nothing -> replicate (fromEnum $ regionHeight $ affectedRegion ops) True
|
||||
Just previousOps -> if affectedRegion previousOps /= affectedRegion ops
|
||||
then replicate (displayOpsRows ops) True
|
||||
else zipWith (/=) (Vector.toList previousOps)
|
||||
(Vector.toList ops)
|
||||
else Vector.toList $ Vector.zipWith (/=) previousOps ops
|
||||
-- build the Write corresponding to the output image
|
||||
out = (if manipCursor then writeHideCursor dc else mempty)
|
||||
`mappend` writeOutputOps urlsEnabled dc initialAttr diffs ops
|
||||
|
Loading…
Reference in New Issue
Block a user