summaryrefslogtreecommitdiff
path: root/src/windows.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2013-06-07 00:04:01 +0200
committerFlorent Le Coz <louiz@louiz.org>2013-06-07 00:04:01 +0200
commit463ec5ca0d904f62afac9ef5c6c146d9490103c5 (patch)
tree29e4a52f53f79690a14619703a3156424efebd89 /src/windows.py
parent4b537d3477bf48ade8d8de5dca15101d0427f1be (diff)
downloadpoezio-463ec5ca0d904f62afac9ef5c6c146d9490103c5.tar.gz
poezio-463ec5ca0d904f62afac9ef5c6c146d9490103c5.tar.bz2
poezio-463ec5ca0d904f62afac9ef5c6c146d9490103c5.tar.xz
poezio-463ec5ca0d904f62afac9ef5c6c146d9490103c5.zip
Accept NULL bytes in strings to be cut by the poopt module
fix #2296
Diffstat (limited to 'src/windows.py')
-rw-r--r--src/windows.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/windows.py b/src/windows.py
index cc9c09cd..f10b1421 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -909,7 +909,7 @@ class TextWin(Win):
offset += 1
if get_theme().CHAR_TIME_RIGHT and message.str_time:
offset += 1
- lines = cut_text(txt, self.width-offset)
+ lines = cut_text(self.width-offset, txt)
prepend = ''
attrs = []
for line in lines: