diff options
author | mathieui <mathieui@mathieui.net> | 2013-07-31 23:56:49 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2013-07-31 23:56:49 +0200 |
commit | 890945d03713a6719e87aac43c86e6682dc00a07 (patch) | |
tree | c1c8dfb9d636c934c1dbedf817a341158cf89ea5 /src/pooptmodule.c | |
parent | 19135d4a76790c0675529eaa7591b326e631d8e6 (diff) | |
download | poezio-890945d03713a6719e87aac43c86e6682dc00a07.tar.gz poezio-890945d03713a6719e87aac43c86e6682dc00a07.tar.bz2 poezio-890945d03713a6719e87aac43c86e6682dc00a07.tar.xz poezio-890945d03713a6719e87aac43c86e6682dc00a07.zip |
Fix #2334 (wrong character length for formatting chars)
Diffstat (limited to 'src/pooptmodule.c')
-rw-r--r-- | src/pooptmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pooptmodule.c b/src/pooptmodule.c index 83b8bba8..4dab1088 100644 --- a/src/pooptmodule.c +++ b/src/pooptmodule.c @@ -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; } |