summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-06-13 00:18:47 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-06-13 00:18:47 +0000
commit9a88c02142a47bd1dc09db5815566ae26e55659c (patch)
tree00e09fd59aab547e54591c97ba451343af377990
parent48e83924d6cc55fcc9e40ad38c6f6ed0126a3cd5 (diff)
downloadpoezio-9a88c02142a47bd1dc09db5815566ae26e55659c.tar.gz
poezio-9a88c02142a47bd1dc09db5815566ae26e55659c.tar.bz2
poezio-9a88c02142a47bd1dc09db5815566ae26e55659c.tar.xz
poezio-9a88c02142a47bd1dc09db5815566ae26e55659c.zip
definitely fix this empty line issue svn diff
-rw-r--r--src/window.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/window.py b/src/window.py
index 7b55e43e..87b90259 100644
--- a/src/window.py
+++ b/src/window.py
@@ -188,9 +188,6 @@ class TextWin(Win):
limit = txt[:self.width-offset].find('\n')
else:
limit = self.width-offset-1
- # if limit == 0:
- # txt = txt[1:]
- # continue
color = message.user.color if message.user else None
if not first:
nick = None
@@ -199,9 +196,7 @@ class TextWin(Win):
txt[:limit], message.color,
offset)
lines.append(l)
- if limit == 0:
- limit = 1
- txt = txt[limit:]
+ txt = txt[limit+1:]
first = False
return lines[-len(messages):]# return only the needed number of lines