From 94d9d02e8f7049cff2befbed853a1cc8075a99d5 Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Sun, 13 Jun 2010 02:01:39 +0000 Subject: fix the LAST issue with the empty lines !!, seriously --- src/window.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/window.py') 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 -- cgit v1.2.3