Merge branch 'master' into 2948-add-user-decorators

This commit is contained in:
Alexander Courtis 2024-11-17 13:47:24 +11:00 committed by GitHub
commit 4cada41cc6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -169,10 +169,7 @@ function M.update()
log.profile_end(profile)
local bufnr = view.get_bufnr()
local should_draw = bufnr
and vim.api.nvim_buf_is_valid(bufnr)
and vim.api.nvim_buf_is_loaded(bufnr)
and vim.api.nvim_get_option_value("buflisted", { buf = bufnr })
local should_draw = bufnr and vim.api.nvim_buf_is_valid(bufnr) and vim.api.nvim_buf_is_loaded(bufnr)
if should_draw then
local explorer = core.get_explorer()
if explorer then