Fix #2334 (wrong character length for formatting chars)
This commit is contained in:
parent
19135d4a76
commit
890945d037
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue