Closed gauteh closed 10 years ago
it's caused by the newline. what display width would you expect a multi-line string to have? you could argue that it should be the maximum width of all lines, but then again the specification for wcswidth
states that it should return -1
as soon as it encounters a control character.
so i think, whatever it is you actually need, is application specific and should be handled in sup itself.
Sounds fair, thanks for the explanation.
Hi, we had some issues in sup (https://github.com/sup-heliotrope/sup/issues/157) and it turns out that
Unicode.width
returns -1 for some strings (https://github.com/sup-heliotrope/sup/pull/256), example (ruby 1.9.3):