Text in TextWins not is cut one row before the end of line.

Thus fixing a strange display bug, and making it easier to
copy a text without the "|" at the end of line
This commit is contained in:
Florent Le Coz 2011-03-13 14:12:45 +01:00
parent 8ab4af1082
commit 49f3f0af2c

View file

@ -532,7 +532,7 @@ class TextWin(Win):
first = True
nb = 0
while txt != '':
(txt, cutted_txt) = cut_text(txt, self.width-offset)
(txt, cutted_txt) = cut_text(txt, self.width-offset-1)
l = {'colorized': message.get('colorized'),
'text_offset':offset,
'text_color':message.get('color'),