diff options
author | Eric Engestrom <[email protected]> | 2020-03-11 14:39:48 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2020-04-20 22:11:00 +0200 |
commit | a24ab26ff72634999ebc262dbdd3404d7b68bfea (patch) | |
tree | 4fbd6bff998462cd78fff070542e185c15c55362 /bin/pick/ui.py | |
parent | 8b8a99ba567314d5a83633a8ef73a5491976c67c (diff) |
pick-ui: auto-scroll the feedback window
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Dylan Baker <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4650>
Diffstat (limited to 'bin/pick/ui.py')
-rw-r--r-- | bin/pick/ui.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/pick/ui.py b/bin/pick/ui.py index a6f2fc7006e..d309c9db883 100644 --- a/bin/pick/ui.py +++ b/bin/pick/ui.py @@ -177,6 +177,8 @@ class UI: async def feedback(self, text: str) -> None: self.feedback_box.append(urwid.AttrMap(urwid.Text(text), None)) + latest_item_index = len(self.feedback_box) - 1 + self.feedback_box.set_focus(latest_item_index) def remove_commit(self, commit: CommitWidget) -> None: for i, c in enumerate(self.commit_list): |