Skip to content

Commit 4cada41

Browse files
authored
Merge branch 'master' into 2948-add-user-decorators
2 parents ff3dd12 + 28eac28 commit 4cada41

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lua/nvim-tree/diagnostics.lua

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,7 @@ function M.update()
169169
log.profile_end(profile)
170170

171171
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 })
172+
local should_draw = bufnr and vim.api.nvim_buf_is_valid(bufnr) and vim.api.nvim_buf_is_loaded(bufnr)
176173
if should_draw then
177174
local explorer = core.get_explorer()
178175
if explorer then

0 commit comments

Comments
 (0)