mirror of
https://github.com/ilyakooo0/vty.git
synced 2024-11-29 08:49:40 +03:00
mkRanges: caveat
This commit is contained in:
parent
5ed59bb70d
commit
5435e8f8b3
@ -30,6 +30,9 @@ charWidth c = do
|
||||
-- run-length encoded ranges. This function assumes the pairs come
|
||||
-- sorted by character ordinal value. It does not require that the
|
||||
-- character range is fully covered by the sequence.
|
||||
--
|
||||
-- The result of this function is a list of ranges in reverse order
|
||||
-- relative to the input sequence.
|
||||
mkRanges :: [(Char, Int)] -> [WidthTableRange]
|
||||
mkRanges pairs =
|
||||
let convertedPairs = convert <$> pairs
|
||||
|
Loading…
Reference in New Issue
Block a user