Module: Mesa Branch: master Commit: a24ab26ff72634999ebc262dbdd3404d7b68bfea URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a24ab26ff72634999ebc262dbdd3404d7b68bfea
Author: Eric Engestrom <[email protected]> Date: Wed Mar 11 14:39:48 2020 +0100 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> --- bin/pick/ui.py | 2 ++ 1 file changed, 2 insertions(+) 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): _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
