Skip to content

Commit a7ae7cc

Browse files
committed
explicitly call Explorer constructor
1 parent 94ae821 commit a7ae7cc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lua/nvim-tree/explorer/init.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ function Explorer:create(path)
5151
---@type Explorer
5252
local explorer_placeholder = nil
5353

54-
local o = RootNode.create(self, explorer_placeholder, path, "..", nil) --[[@as Explorer]]
54+
local o = RootNode.create(self, explorer_placeholder, path, "..", nil)
55+
56+
o = self:new(o) --[[@as Explorer]]
5557

5658
o.explorer = o
5759

@@ -267,7 +269,7 @@ function Explorer:populate_children(handle, cwd, node, git_status, parent)
267269
local abs = utils.path_join({ cwd, name })
268270

269271
if Watcher.is_fs_event_capable(abs) then
270-
local profile = log.profile_start("explore populate_children %s", abs)
272+
local profile = log.profile_start("populate_children %s", abs)
271273

272274
---@type uv.fs_stat.result|nil
273275
local stat = vim.loop.fs_lstat(abs)

0 commit comments

Comments
 (0)