fix: close is in view, not in lib

This commit is contained in:
kiyan42
2021-04-14 12:01:40 +02:00
parent d065927322
commit ed6971d88a

View File

@@ -245,7 +245,7 @@ function M.open_file(mode, filename)
view.resize()
if vim.g.nvim_tree_quit_on_open == 1 and mode ~= 'preview' then
M.close()
view.close()
end
renderer.draw(M.Tree, true)