diff --git a/dooit/ui/widgets/trees/model_tree.py b/dooit/ui/widgets/trees/model_tree.py index 6e5edf95..08eea7a2 100644 --- a/dooit/ui/widgets/trees/model_tree.py +++ b/dooit/ui/widgets/trees/model_tree.py @@ -99,6 +99,7 @@ def update_prompt_by_id(self, _id: str): def update_current_prompt(self): if self.highlighted is not None: self.update_prompt_at_index(self.highlighted) + self.scroll_to_highlight() def set_filter(self, filter: str) -> None: self.filter_refresh = bool(filter)