Skip to content

Commit

Permalink
fix: check if features enabled before using them
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaiser-Yang committed Jan 26, 2025
1 parent 860666f commit 2b97314
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/blink-cmp-git/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@ function GitSource:handle_items_pre_cache(context, callback)
end)
end
local job_and_items = self.pre_cache_jobs[trigger]
-- no enabled features
if not job_and_items then
return function() end
end
local cancel_fun = function()
for _, job in pairs(job_and_items.jobs) do
job:shutdown(0, 9)
Expand Down

0 comments on commit 2b97314

Please sign in to comment.