fix(view): refresh opened files highlight on buffer read, unload (#1827)

This commit is contained in:
Richard Li
2022-12-16 16:36:00 +13:00
committed by GitHub
parent e8ea62c198
commit 18272f8df3
4 changed files with 14 additions and 12 deletions

View File

@@ -44,7 +44,7 @@ function M.reload_explorer(_, unloaded_bufnr)
local projects = git.reload()
refresh_nodes(core.get_explorer(), projects, unloaded_bufnr)
if view.is_visible() then
renderer.draw()
renderer.draw(unloaded_bufnr)
end
event_running = false
end