From 09c830c6ae59cbd7df8443ffd5ff7e23e72c8636 Mon Sep 17 00:00:00 2001 From: Asmageddon Date: Sun, 27 May 2012 17:19:37 +0200 Subject: [PATCH] Yet another search scrolling bug --- deluge/ui/console/modes/alltorrents.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/ui/console/modes/alltorrents.py b/deluge/ui/console/modes/alltorrents.py index 08e609703..3bf485a6c 100644 --- a/deluge/ui/console/modes/alltorrents.py +++ b/deluge/ui/console/modes/alltorrents.py @@ -920,8 +920,8 @@ class AllTorrents(BaseMode, component.Component): n = n.lower() if n.find(search_string) >= 0: self.cursel = (i+1) - if ((self.curoff - 4) > self.cursel): - self.curoff = max(1, self.cursel - 4) + if ((self.curoff + 1) > self.cursel): + self.curoff = max(1, self.cursel - 1) self.search_state = SEARCH_SUCCESS return self.search_state = SEARCH_START_REACHED