Treat '\n' as 1 column wide

Fixes #842
This commit is contained in:
Maxime Coste 2016-10-04 19:37:43 +01:00
parent a00e40e151
commit d2a324d3c4

View File

@ -51,7 +51,7 @@ inline bool is_basic_alpha(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