mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Fixed scrolling bug when searching backwards
This commit is contained in:
parent
be79c586da
commit
546aa58482
1 changed files with 1 additions and 1 deletions
|
@ -843,7 +843,7 @@ class AllTorrents(BaseMode, component.Component):
|
||||||
if n.find(search_string) >= 0:
|
if n.find(search_string) >= 0:
|
||||||
self.cursel = (i+1)
|
self.cursel = (i+1)
|
||||||
if ((self.curoff - 4) > self.cursel):
|
if ((self.curoff - 4) > self.cursel):
|
||||||
self.curoff = self.cursel - 4
|
self.curoff = max(1, self.cursel - 4)
|
||||||
self.search_state = SEARCH_SUCCESS
|
self.search_state = SEARCH_SUCCESS
|
||||||
return
|
return
|
||||||
self.search_state = SEARCH_START_REACHED
|
self.search_state = SEARCH_START_REACHED
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue