mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 07:28:39 +00:00
fix bug for selecting multiple torrents with cursor above last mark (bug 1689)
This commit is contained in:
parent
b1e0dd66eb
commit
d05352db65
1 changed files with 6 additions and 2 deletions
|
@ -813,8 +813,12 @@ class AllTorrents(BaseMode, component.Component):
|
||||||
effected_lines = [self.cursel-1]
|
effected_lines = [self.cursel-1]
|
||||||
elif chr(c) == 'M':
|
elif chr(c) == 'M':
|
||||||
if self.last_mark >= 0:
|
if self.last_mark >= 0:
|
||||||
self.marked.extend(range(self.last_mark,self.cursel+1))
|
if (self.cursel+1) > self.last_mark:
|
||||||
effected_lines = range(self.last_mark,self.cursel)
|
mrange = range(self.last_mark,self.cursel+1)
|
||||||
|
else:
|
||||||
|
mrange = range(self.cursel-1,self.last_mark)
|
||||||
|
self.marked.extend(mrange[1:])
|
||||||
|
effected_lines = mrange
|
||||||
else:
|
else:
|
||||||
self._mark_unmark(self.cursel)
|
self._mark_unmark(self.cursel)
|
||||||
effected_lines = [self.cursel-1]
|
effected_lines = [self.cursel-1]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue