Skip to content

Commit

Permalink
fix move first and last
Browse files Browse the repository at this point in the history
After rebuilding the threadlist, we still need to actually update the
focused thread.
  • Loading branch information
paretje authored and pazz committed Feb 9, 2021
1 parent 70d7cb6 commit 486df70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions alot/buffers/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ def focus_first(self):
self.body.set_focus(0)
else:
self.rebuild(reverse=False)
self.body.set_focus(0)

def focus_last(self):
if self.reversed:
Expand All @@ -125,6 +126,7 @@ def focus_last(self):
self.body.set_focus(num_lines - 1)
else:
self.rebuild(reverse=True)
self.body.set_focus(0)

def focus_thread(self, thread):
tid = thread.get_thread_id()
Expand Down

0 comments on commit 486df70

Please sign in to comment.