From 02a805679cd258224454576bee8efe5c7315ac6d Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Sun, 9 Jan 2011 02:23:04 +0000 Subject: remove the separator when it is at the bottom (unles the user maid M-v) --- src/windows.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/windows.py') diff --git a/src/windows.py b/src/windows.py index b6113bf0..83bc886f 100644 --- a/src/windows.py +++ b/src/windows.py @@ -536,10 +536,10 @@ class TextWin(Win): """ if self.height <= 0: return - if self.pos != 0: - lines = self.built_lines[-self.height-self.pos:-self.pos] - else: + if self.pos == 0: lines = self.built_lines[-self.height:] + else: + lines = self.built_lines[-self.height-self.pos:-self.pos] self._win.move(0, 0) with g_lock: self._win.erase() -- cgit v1.2.3