From 3d1d710655b255df2a9909d3757ea999446d3097 Mon Sep 17 00:00:00 2001 From: Dan Robb Date: Fri, 14 Aug 2026 22:04:48 -0400 Subject: [PATCH] fix(explorer): clear dir_status on git refresh The _update reset clears each node's status and ignored but not dir_status, so a file committed under a previously-untracked folder keeps inheriting the folder's stale "??" and shows as untracked until restart. Clear dir_status too so it is re-derived from git status on each refresh. --- lua/snacks/explorer/git.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/snacks/explorer/git.lua b/lua/snacks/explorer/git.lua index dee9611d6..3f81b8991 100644 --- a/lua/snacks/explorer/git.lua +++ b/lua/snacks/explorer/git.lua @@ -120,6 +120,7 @@ function M._update(cwd, results) Tree:walk(node, function(n) n.status = nil n.ignored = nil + n.dir_status = nil end, { all = true }) ---@param path string