Restore schedule_wrap

This commit is contained in:
hrsh7th
2023-05-27 23:02:13 +09:00
parent a0225043ab
commit 15e8a636df

View File

@@ -329,7 +329,7 @@ source.complete = function(self, ctx, callback)
context = ctx, context = ctx,
completion_context = completion_context, completion_context = completion_context,
}), }),
self.complete_dedup(function(response) self.complete_dedup(vim.schedule_wrap(function(response)
if self.context ~= ctx then if self.context ~= ctx then
return return
end end
@@ -367,7 +367,7 @@ source.complete = function(self, ctx, callback)
self.status = prev_status self.status = prev_status
end end
callback() callback()
end) end))
) )
return true return true
end end