diff --git a/lua/trouble/view.lua b/lua/trouble/view.lua index b9662fbf..c0219b37 100644 --- a/lua/trouble/view.lua +++ b/lua/trouble/view.lua @@ -495,6 +495,10 @@ function View:_preview() if not item then return end + if item.bufnr == 0 then + return + end + util.debug("preview") if item.is_file ~= true then