Skip to content

Commit

Permalink
fix: signature window failing when trigger context empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Saghen committed Oct 8, 2024
1 parent b6564cd commit 6a21d7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/blink/cmp/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ cmp.setup_signature_help = function()
signature_trigger.listen_on_show(function(context)
cmp.sources.cancel_signature_help()
cmp.sources.get_signature_help(context, function(signature_help)
if signature_help ~= nil and signature_trigger.context.id == context.id then
if signature_help ~= nil and signature_trigger.context ~= nil and signature_trigger.context.id == context.id then
signature_trigger.set_active_signature_help(signature_help)
signature_window.open_with_signature_help(context, signature_help)
else
Expand Down

0 comments on commit 6a21d7c

Please sign in to comment.