Skip to content

Commit 6d72e27

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/nvim-tree.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,13 @@ function M.find_file(with_open, bufnr, bang)
163163
find_file(with_open, bufnr, bang)
164164
end
165165

166-
function M.toggle(do_find_file, no_focus, cwd, bang)
166+
function M.toggle(with_find_file, no_focus, cwd, bang)
167167
if view.is_visible() then
168168
view.close()
169169
else
170170
local previous_buf = vim.api.nvim_get_current_buf()
171171
M.open(cwd)
172-
if _config.update_focused_file.enable or do_find_file then
172+
if _config.update_focused_file.enable or with_find_file then
173173
find_file(false, previous_buf, bang)
174174
end
175175
if no_focus then

0 commit comments

Comments
 (0)