diff options
author | Florent Le Coz <louiz@louiz.org> | 2011-09-11 15:19:33 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2011-09-11 15:19:33 +0200 |
commit | e6622db4cae723d097c59950d56e68e84359d64e (patch) | |
tree | 762256251333e538a258aaee6b2da6f74d17148a /src | |
parent | b7b1faebdb52e8f041867f19f29a08f64cfaf220 (diff) | |
download | poezio-e6622db4cae723d097c59950d56e68e84359d64e.tar.gz poezio-e6622db4cae723d097c59950d56e68e84359d64e.tar.bz2 poezio-e6622db4cae723d097c59950d56e68e84359d64e.tar.xz poezio-e6622db4cae723d097c59950d56e68e84359d64e.zip |
fix a offset size issue that made the text be cut in too short lines.
Diffstat (limited to 'src')
-rw-r--r-- | src/windows.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/windows.py b/src/windows.py index 5b673c21..d2ff0a91 100644 --- a/src/windows.py +++ b/src/windows.py @@ -560,15 +560,11 @@ class TextWin(Win): offset = 1 + len(message.str_time) if nick: offset += wcwidth.wcswidth(nick) + 2 # + nick + spaces length - if nick: - offset += wcwidth.wcswidth(nick) + 2 # + nick + spaces length if theme.CHAR_TIME_LEFT: offset += 1 if theme.CHAR_TIME_RIGHT: offset += 1 - lines = cut_text(txt, self.width-offset-1) - first = True for line in lines: self.built_lines.append(Line(msg=message, |