Skip to content

Commit

Permalink
fix: wrap view.close in pcall
Browse files Browse the repository at this point in the history
  • Loading branch information
obergodmar authored and Vitalii Kogogin committed Nov 11, 2024
1 parent 28eac28 commit bf72c8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/nvim-tree.lua
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ local function setup_autocommands(opts)
pattern = "NvimTree_*",
callback = function()
if utils.is_nvim_tree_buf(0) then
view.close()
pcall(view.close)
end
end,
})
Expand Down

0 comments on commit bf72c8f

Please sign in to comment.