fix: NvimTree does not open the file when it is open standalone (#815)

This commit is contained in:
eightpigs
2021-12-06 05:32:08 +08:00
committed by GitHub
parent 65b8b19c8b
commit e84828806c

View File

@@ -345,8 +345,6 @@ function M.open_file(mode, filename)
if target_winid == -1 then if target_winid == -1 then
target_winid = M.Tree.target_winid target_winid = M.Tree.target_winid
elseif target_winid == nil then
return
end end
local do_split = mode == "split" or mode == "vsplit" local do_split = mode == "split" or mode == "vsplit"