find file sets cursor on file if tree is open
This commit is contained in:
@@ -137,7 +137,7 @@ function M.find_file(with_open)
|
|||||||
local bufname = vim.fn.bufname()
|
local bufname = vim.fn.bufname()
|
||||||
local filepath = vim.fn.fnamemodify(bufname, ':p')
|
local filepath = vim.fn.fnamemodify(bufname, ':p')
|
||||||
|
|
||||||
if with_open then
|
if with_open and not lib.win_open() then
|
||||||
return M.open(
|
return M.open(
|
||||||
function()
|
function()
|
||||||
lib.win_focus()
|
lib.win_focus()
|
||||||
|
|||||||
Reference in New Issue
Block a user