From 661087b5b8f494a9e3ca42ec010d44c599aa26b5 Mon Sep 17 00:00:00 2001 From: Jaehwang Jung Date: Thu, 21 Mar 2024 20:15:23 +0900 Subject: [PATCH] fix(diagnostic): buffer might have become invalid 04d5a528a4159901607c11d46a398f45db2ed43f attempted to fix this issue, but it was not actually fixed due to the lack of `return`. --- lua/fzf-lua/providers/diagnostic.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/fzf-lua/providers/diagnostic.lua b/lua/fzf-lua/providers/diagnostic.lua index c45cea51..71551a9a 100644 --- a/lua/fzf-lua/providers/diagnostic.lua +++ b/lua/fzf-lua/providers/diagnostic.lua @@ -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)