Skip to content

Commit

Permalink
fix(diagnostic): buffer might have become invalid
Browse files Browse the repository at this point in the history
04d5a52 attempted to fix this issue,
but it was not actually fixed due to the lack of `return`.
  • Loading branch information
tomtomjhj authored and ibhagwan committed Mar 21, 2024
1 parent 730c276 commit 661087b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/fzf-lua/providers/diagnostic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ M.diagnostics = function(opts)
local diag_entry = preprocess_diag(diag, bufnr)
if diag_entry == nil then
coroutine.resume(co)
return
end
local entry = make_entry.lcol(diag_entry, opts)
entry = make_entry.file(entry, opts)
Expand Down

0 comments on commit 661087b

Please sign in to comment.