find file sets cursor on file if tree is open

This commit is contained in:
kiyan 2020-12-09 22:03:39 +01:00
parent 2cec5892d7
commit 811dacfb98

View File

@ -137,7 +137,7 @@ function M.find_file(with_open)
local bufname = vim.fn.bufname()
local filepath = vim.fn.fnamemodify(bufname, ':p')
if with_open then
if with_open and not lib.win_open() then
return M.open(
function()
lib.win_focus()