From 4a9a6e6994667bc419126b7757704c5d90c0a692 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 13 Jun 2014 13:03:34 +0200 Subject: fix control+down when all lines are visible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/editor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/editor.py b/src/editor.py index bc73348..44caac6 100644 --- a/src/editor.py +++ b/src/editor.py @@ -330,6 +330,7 @@ class TextArea(): self.mark, self.x, self.offx = None, 0, 0 else: self.y = self.offy + self.height - 3 + self.y = min(self.y, len(self.lines) - 1) self.mark, self.x, self.offx = None, 0, 0 elif d == -3: if self.x == 0: self.alert(_('At beginning')) -- cgit v1.2.3-70-g09d2