From a24ab26ff72634999ebc262dbdd3404d7b68bfea Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Wed, 11 Mar 2020 14:39:48 +0100 Subject: [PATCH] pick-ui: auto-scroll the feedback window Signed-off-by: Eric Engestrom Reviewed-by: Dylan Baker Part-of: --- 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): -- 2.30.2