fix(view): refresh opened files highlight on buffer read, unload (#1827)
This commit is contained in:
@@ -46,7 +46,7 @@ local picture_map = {
|
||||
gif = true,
|
||||
}
|
||||
|
||||
function M.draw()
|
||||
function M.draw(unloaded_bufnr)
|
||||
local bufnr = view.get_bufnr()
|
||||
if not core.get_explorer() or not bufnr or not vim.api.nvim_buf_is_loaded(bufnr) then
|
||||
return
|
||||
@@ -73,7 +73,7 @@ function M.draw()
|
||||
:configure_symlink_destination(M.config.symlink_destination)
|
||||
:configure_filter(live_filter.filter, live_filter.prefix)
|
||||
:build_header(view.is_root_folder_visible(core.get_cwd()))
|
||||
:build(core.get_explorer())
|
||||
:build(core.get_explorer(), unloaded_bufnr)
|
||||
:unwrap()
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user