Skip to content

Commit 9988771

Browse files
committed
fix git status on destroyed
1 parent 6364fa1 commit 9988771

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/neo-tree/git/init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ M.status_cache = setmetatable({}, {
1313
__newindex = function(_, root_dir, status)
1414
require("neo-tree.sources.filesystem.lib.fs_watch").on_destroyed(root_dir, function()
1515
rawset(M.status_cache, root_dir, nil)
16+
events.fire_event(events.GIT_STATUS_CHANGED, { git_root = root_dir, status = status })
1617
end)
1718
rawset(M.status_cache, root_dir, status)
1819
end,

0 commit comments

Comments
 (0)