Skip to content

Commit

Permalink
Fix urwid reverse error. Thanks to @pavoljuhas. Closes #99
Browse files Browse the repository at this point in the history
  • Loading branch information
firecat53 committed Sep 17, 2020
1 parent 3ef7d27 commit b70a731
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions urlscan/urlchoose.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ def _all_escape(self):
def _reverse(self):
""" R """
# Reverse items
fpo = self.top.body.focus_position
fpo = self.top.base_widget.body.focus_position
if self.compact is True:
self.items.reverse()
else:
Expand All @@ -475,8 +475,8 @@ def _reverse(self):
else:
rev.insert(2, item)
self.items = rev
self.top.body = urwid.ListBox(self.items)
self.top.body.focus_position = self._cur_focus(fpo)
self.top.base_widget.body = urwid.ListBox(self.items)
self.top.base_widget.body.focus_position = self._cur_focus(fpo)

def _context(self):
""" c """
Expand Down

0 comments on commit b70a731

Please sign in to comment.