Skip to content

Commit

Permalink
#1961 diagnostic logging refresh_nodes_for_path
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-courtis committed Feb 13, 2023
1 parent 8b8d457 commit 80a41f3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lua/nvim-tree/explorer/reload.lua
Expand Up @@ -179,6 +179,14 @@ function M.refresh_nodes_for_path(path)
:applier(function(node)
local abs_contains = node.absolute_path and path:match("^" .. node.absolute_path)
local link_contains = node.link_to and path:match("^" .. node.link_to)
log.line(
"all",
"refresh_nodes_for_path absolute_path='%s' link_to='%s' %s %s",
node.absolute_path,
node.link_to,
abs_contains and "abs_contains" or "",
link_contains and "link_contains" or ""
)
if abs_contains or link_contains then
M.refresh_node(node)
end
Expand Down

0 comments on commit 80a41f3

Please sign in to comment.