summaryrefslogtreecommitdiff
path: root/src/windows.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2013-06-19 22:04:46 +0200
committerFlorent Le Coz <louiz@louiz.org>2013-06-19 22:18:50 +0200
commit0bcd420602d00ff76de7d1f2990ce47e4ab24d63 (patch)
tree10ac6a620f1853f875c9c15061e1979835339f6a /src/windows.py
parentd269617788e96ed375a3b7ecf1e87d2f17b5e1b8 (diff)
downloadpoezio-0bcd420602d00ff76de7d1f2990ce47e4ab24d63.tar.gz
poezio-0bcd420602d00ff76de7d1f2990ce47e4ab24d63.tar.bz2
poezio-0bcd420602d00ff76de7d1f2990ce47e4ab24d63.tar.xz
poezio-0bcd420602d00ff76de7d1f2990ce47e4ab24d63.zip
Consider the number of columns of each characters in the poopt module
Some characters take 0 columns, others take 1 or 2 (full-width characters) fixes #2142
Diffstat (limited to 'src/windows.py')
-rw-r--r--src/windows.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/windows.py b/src/windows.py
index bd348859..27439c8e 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -889,7 +889,7 @@ class TextWin(Win):
offset += 1
if get_theme().CHAR_TIME_RIGHT and message.str_time:
offset += 1
- lines = cut_text(self.width-offset, txt)
+ lines = cut_text(self.width-offset-1, txt)
prepend = ''
attrs = []
for line in lines: