We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ff3dd12 + 28eac28 commit 4cada41Copy full SHA for 4cada41
lua/nvim-tree/diagnostics.lua
@@ -169,10 +169,7 @@ function M.update()
169
log.profile_end(profile)
170
171
local bufnr = view.get_bufnr()
172
- local should_draw = bufnr
173
- and vim.api.nvim_buf_is_valid(bufnr)
174
- and vim.api.nvim_buf_is_loaded(bufnr)
175
- 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)
176
if should_draw then
177
local explorer = core.get_explorer()
178
if explorer then
0 commit comments