summaryrefslogtreecommitdiff
path: root/src/windows.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-09-09 18:43:20 +0200
committerFlorent Le Coz <louiz@louiz.org>2011-09-09 18:43:20 +0200
commitfa5b5fc45dfb6e3a736954f0a916541fda963305 (patch)
tree1f407a68579d1d495ccea582cd65dbf85e54baef /src/windows.py
parent2e04c5c77e64a45e9ab8a23b8cb7a683630eb067 (diff)
downloadpoezio-fa5b5fc45dfb6e3a736954f0a916541fda963305.tar.gz
poezio-fa5b5fc45dfb6e3a736954f0a916541fda963305.tar.bz2
poezio-fa5b5fc45dfb6e3a736954f0a916541fda963305.tar.xz
poezio-fa5b5fc45dfb6e3a736954f0a916541fda963305.zip
Make it work. MAY segfault. Need intensive testing.
Should be A. LOT. FASTER. though.
Diffstat (limited to 'src/windows.py')
-rw-r--r--src/windows.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/windows.py b/src/windows.py
index 1aff61bc..59365dc8 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -565,8 +565,6 @@ class TextWin(Win):
if nick:
offset += wcwidth.wcswidth(nick) + 2 # + nick + spaces length
first = True
- start_pos = 0
- end_pos = 0
text_len = len(txt)
offset = (3 if message.nickname else 1) + len(message.str_time)+len(message.nickname or '')
lines = cut_text(txt, self.width-offset-1)
@@ -576,7 +574,6 @@ class TextWin(Win):
end_pos=line[1],
first=first))
first = False
- start_pos = next_start_pos
while len(self.built_lines) > self.lines_nb_limit:
self.built_lines.pop(0)
return len(lines)