From 49f3f0af2cbbbeea7e075e4a7614182a9cccf549 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Sun, 13 Mar 2011 14:12:45 +0100 Subject: 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 --- src/windows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/windows.py b/src/windows.py index 1b414b37..2d62a35b 100644 --- a/src/windows.py +++ b/src/windows.py @@ -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'), -- cgit v1.2.3