judah / haskeline

A Haskell library for line input in command-line programs.
https://hackage.haskell.org/package/haskeline
BSD 3-Clause "New" or "Revised" License
221 stars 75 forks source link

Use grapheme's width to align a list of completions #143

Closed matil019 closed 4 years ago

matil019 commented 4 years ago

Resolves #142

Modifies makeLines and padWords to use gsWidth . stringToGraphemes instead of length to count the visual width of strings instead of counting the number of characters.

judah commented 4 years ago

Thanks again for finding this issue and for the fix!