Skip to content

Commit d712b07

Browse files
committed
fix: wrap view.close in pcall
1 parent f9ff00b commit d712b07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/nvim-tree.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ local function setup_autocommands(opts)
321321
pattern = "NvimTree_*",
322322
callback = function()
323323
if utils.is_nvim_tree_buf(0) then
324-
view.close()
324+
pcall(view.close)
325325
end
326326
end,
327327
})

0 commit comments

Comments
 (0)