Skip to content

Commit 2692733

Browse files
committed
fix(#1723): find_file for externally created new file results in folder unable to be opened
1 parent a0f3e99 commit 2692733

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lua/nvim-tree/actions/finders/find-file.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,16 @@ function M.fn(fname)
1616
if running[fname] or not core.get_explorer() then
1717
return
1818
end
19-
running[fname] = true
2019

21-
local ps = log.profile_start("find file %s", fname)
2220
-- always match against the real path
2321
local fname_real = uv.fs_realpath(fname)
2422
if not fname_real then
2523
return
2624
end
2725

26+
running[fname] = true
27+
28+
local ps = log.profile_start("find file %s", fname)
2829
local line = core.get_nodes_starting_line()
2930

3031
local absolute_paths_searched = {}

0 commit comments

Comments
 (0)