mirror of
https://github.com/ilyakooo0/vty.git
synced 2024-11-29 08:49:40 +03:00
Merge pull request #113 from glguy/redundant-clause-patch
Remove redundant clause from clipForCharWidth
This commit is contained in:
commit
25b03409cd
@ -46,7 +46,6 @@ clipText txt leftSkip rightClip =
|
||||
| w < cw = (n, w /= 0)
|
||||
| otherwise = clipForCharWidth (w - cw) (TL.tail t) (n + 1)
|
||||
where cw = safeWcwidth (TL.head t)
|
||||
clipForCharWidth _ _ _ = error "clipForCharWidth applied to undefined"
|
||||
in txt''
|
||||
|
||||
-- | This is the internal representation of Images. Use the constructors in "Graphics.Vty.Image" to
|
||||
|
Loading…
Reference in New Issue
Block a user