Skip to content

Commit

Permalink
Fix demo callback in clinkprompt modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisant996 committed Oct 19, 2024
1 parent 88a7c39 commit d1f34d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clink/app/scripts/prompt.lua
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ function clink._activate_clinkprompt_module(module)
local new_clinkprompt = module or ""
new_clinkprompt = new_clinkprompt:gsub('"', ''):gsub('%s+$', '')
if active_clinkprompt == new_clinkprompt then
return
return clinkprompt_exports
end

local ret
Expand Down Expand Up @@ -450,6 +450,7 @@ function clink._activate_clinkprompt_module(module)
if type(ret.onactivate) == "function" then
ret.onactivate()
end
return ret
end
end

Expand Down

0 comments on commit d1f34d7

Please sign in to comment.