fix: reload view when bufnr is not valid
This commit is contained in:
@@ -294,6 +294,10 @@ end
|
|||||||
|
|
||||||
function M.open(options)
|
function M.open(options)
|
||||||
options = options or { focus_tree = true }
|
options = options or { focus_tree = true }
|
||||||
|
if not a.nvim_buf_is_valid(M.View.bufnr) then
|
||||||
|
HAS_LOADED = false
|
||||||
|
end
|
||||||
|
|
||||||
if not HAS_LOADED then
|
if not HAS_LOADED then
|
||||||
M.setup()
|
M.setup()
|
||||||
HAS_LOADED = true
|
HAS_LOADED = true
|
||||||
|
|||||||
Reference in New Issue
Block a user