From: Eric Engestrom Date: Wed, 11 Mar 2020 13:39:48 +0000 (+0100) Subject: pick-ui: auto-scroll the feedback window X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a24ab26ff72634999ebc262dbdd3404d7b68bfea;p=mesa.git pick-ui: auto-scroll the feedback window Signed-off-by: Eric Engestrom Reviewed-by: Dylan Baker Part-of: --- 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):