summaryrefslogtreecommitdiff
path: root/src/window.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-06-13 02:01:39 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-06-13 02:01:39 +0000
commit94d9d02e8f7049cff2befbed853a1cc8075a99d5 (patch)
tree3cdff080a28a942fed3c6f25aa8e84774440bd57 /src/window.py
parent9456f7fc35538f98414eeac8e11745672317692c (diff)
downloadpoezio-94d9d02e8f7049cff2befbed853a1cc8075a99d5.tar.gz
poezio-94d9d02e8f7049cff2befbed853a1cc8075a99d5.tar.bz2
poezio-94d9d02e8f7049cff2befbed853a1cc8075a99d5.tar.xz
poezio-94d9d02e8f7049cff2befbed853a1cc8075a99d5.zip
fix the LAST issue with the empty lines !!, seriously
Diffstat (limited to 'src/window.py')
-rw-r--r--src/window.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/window.py b/src/window.py
index 267c0798..4c6b27bb 100644
--- a/src/window.py
+++ b/src/window.py
@@ -196,7 +196,9 @@ class TextWin(Win):
txt[:limit], message.color,
offset)
lines.append(l)
- txt = txt[limit+1:]
+ txt = txt[limit:]
+ if txt.startswith('\n'):
+ txt = txt[1:]
first = False
return lines[-len(messages):]# return only the needed number of lines