Skip to content

Commit bf72c8f

Browse files
obergodmarVitalii Kogogin
authored andcommitted
fix: wrap view.close in pcall
1 parent 28eac28 commit bf72c8f

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
@@ -227,7 +227,7 @@ local function setup_autocommands(opts)
227227
pattern = "NvimTree_*",
228228
callback = function()
229229
if utils.is_nvim_tree_buf(0) then
230-
view.close()
230+
pcall(view.close)
231231
end
232232
end,
233233
})

0 commit comments

Comments
 (0)