find file sets cursor on file if tree is open
This commit is contained in:
parent
2cec5892d7
commit
811dacfb98
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user