Restore schedule_wrap
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user