Skip to content

Commit

Permalink
Merge pull request #178 from xiyaowong/patch-2
Browse files Browse the repository at this point in the history
fix: use pcall to clear autocmd silently
  • Loading branch information
ful1e5 committed Apr 11, 2022
2 parents 825dc0b + 94065ce commit 1c5be8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/github-theme/autocmds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ autocmds.native_cmds = function(config, colors_name)
group = group,
callback = function()
if vim.g.colors_name ~= autocmds.colors_name then
vim.api.nvim_del_augroup_by_id(group)
pcall(vim.api.nvim_del_augroup_by_id, group)
end
end,
})
Expand Down

0 comments on commit 1c5be8f

Please sign in to comment.