summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-07-31 23:56:49 +0200
committermathieui <mathieui@mathieui.net>2013-07-31 23:56:49 +0200
commit890945d03713a6719e87aac43c86e6682dc00a07 (patch)
treec1c8dfb9d636c934c1dbedf817a341158cf89ea5 /src
parent19135d4a76790c0675529eaa7591b326e631d8e6 (diff)
downloadpoezio-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')
-rw-r--r--src/pooptmodule.c2
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;
}