summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-03-13 14:12:45 +0100
committerFlorent Le Coz <louiz@louiz.org>2011-03-13 14:12:45 +0100
commit49f3f0af2cbbbeea7e075e4a7614182a9cccf549 (patch)
treefa52f1702d026a237ea8614cffe4c349fff75363
parent8ab4af108217957ae1d17dc8bb0a9a0882142715 (diff)
downloadpoezio-49f3f0af2cbbbeea7e075e4a7614182a9cccf549.tar.gz
poezio-49f3f0af2cbbbeea7e075e4a7614182a9cccf549.tar.bz2
poezio-49f3f0af2cbbbeea7e075e4a7614182a9cccf549.tar.xz
poezio-49f3f0af2cbbbeea7e075e4a7614182a9cccf549.zip
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
-rw-r--r--src/windows.py2
1 files changed, 1 insertions, 1 deletions
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'),