parent
a00e40e151
commit
d2a324d3c4
|
@ -51,7 +51,7 @@ inline bool is_basic_alpha(Codepoint c)
|
||||||
|
|
||||||
inline size_t codepoint_width(Codepoint c)
|
inline size_t codepoint_width(Codepoint c)
|
||||||
{
|
{
|
||||||
return wcwidth((wchar_t)c);
|
return c == '\n' ? 1 : wcwidth((wchar_t)c);
|
||||||
}
|
}
|
||||||
|
|
||||||
enum class CharCategories
|
enum class CharCategories
|
||||||
|
|
Loading…
Reference in New Issue
Block a user