small fix for scrolling

This commit is contained in:
Nick 2011-02-01 18:00:25 +01:00
parent 5d46d2aee5
commit 00fa074452
1 changed files with 2 additions and 0 deletions

View File

@ -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: