Skip to content

Commit

Permalink
fix: user autocmd called in fast event not being wrapped
Browse files Browse the repository at this point in the history
  • Loading branch information
Saghen committed Nov 28, 2024
1 parent 9428983 commit e9baeea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/blink/cmp/lib/event_emitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function event_emitter:emit(data)
end
if self.autocmd then
require('blink.cmp.lib.utils').schedule_if_needed(
vim.api.nvim_exec_autocmds('User', { pattern = self.autocmd, modeline = false, data = data })
function() vim.api.nvim_exec_autocmds('User', { pattern = self.autocmd, modeline = false, data = data }) end
)
end
end
Expand Down

0 comments on commit e9baeea

Please sign in to comment.