summaryrefslogtreecommitdiff
path: root/src/window.py
diff options
context:
space:
mode:
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