Commit 890945d0 authored by mathieui's avatar mathieui

Fix #2334 (wrong character length for formatting chars)

parent 19135d4a
......@@ -34,7 +34,7 @@ PyObject *ErrorObject;
static int xwcwidth(wchar_t c)
{
const int res = wcwidth(c);
if (res == -1)
if (res == -1 && c != '\x19')
return 1;
return res;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment