Module: deluge Branch: master Commit: 00fa07445263c1672085259a1115fea2f072fb50
Author: Nick <[email protected]> Date: Tue Feb 1 18:00:25 2011 +0100 small fix for scrolling --- deluge/ui/console/modes/alltorrents.py | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/deluge/ui/console/modes/alltorrents.py b/deluge/ui/console/modes/alltorrents.py index f2f2642..98ac48e 100644 --- a/deluge/ui/console/modes/alltorrents.py +++ b/deluge/ui/console/modes/alltorrents.py @@ -593,11 +593,13 @@ class AllTorrents(BaseMode): # Navigate the torrent list if c == curses.KEY_UP: + if self.cursel == 1: return if not self._scroll_up(1): effected_lines = [self.cursel-1,self.cursel] elif c == curses.KEY_PPAGE: self._scroll_up(int(self.rows/2)) elif c == curses.KEY_DOWN: + if self.cursel >= self.numtorrents: return if not self._scroll_down(1): effected_lines = [self.cursel-2,self.cursel-1] elif c == curses.KEY_NPAGE: -- You received this message because you are subscribed to the Google Groups "deluge-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/deluge-commit?hl=en.
