Skip to content

Commit

Permalink
Mark as completed earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
RRethy committed Oct 2, 2023
1 parent b698d05 commit b538027
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lua/illuminate/providers/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ function M.get_references(bufnr)
return nil
end

bufs[bufnr][4] = true
return bufs[bufnr][3]
end

Expand All @@ -63,8 +62,8 @@ end
function M.initiate_request(bufnr, winid)
local id = 1
if bufs[bufnr] then
local prev_id, cancel_fn, _, completed = unpack(bufs[bufnr])
if not completed then
local prev_id, cancel_fn, references = unpack(bufs[bufnr])
if references == nil then
pcall(cancel_fn)
end
id = prev_id + 1
Expand Down

0 comments on commit b538027

Please sign in to comment.