From 3aacac6f234706d22054cacebf88728bac04411f Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Thu, 5 Aug 2021 16:07:03 +0100 Subject: [PATCH] refresh hover node --- src/textual/widgets/_directory_tree.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/textual/widgets/_directory_tree.py b/src/textual/widgets/_directory_tree.py index cf2b87f725..d82cfd2b67 100644 --- a/src/textual/widgets/_directory_tree.py +++ b/src/textual/widgets/_directory_tree.py @@ -41,6 +41,7 @@ async def watch_hover_node(self, hover_node: NodeID) -> None: node.tree.guide_style = ( "bold not dim red" if node.id == hover_node else "black" ) + self.refresh(layout=True) def render_node(self, node: TreeNode[DirEntry]) -> RenderableType: meta = {"@click": f"click_label({node.id})", "tree_node": node.id}