From 463ec5ca0d904f62afac9ef5c6c146d9490103c5 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Fri, 7 Jun 2013 00:04:01 +0200 Subject: Accept NULL bytes in strings to be cut by the poopt module fix #2296 --- src/windows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/windows.py') 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: -- cgit v1.2.3