Skip to content

Commit

Permalink
fix(preview): fixup for directory check
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 30, 2024
1 parent be4b4c4 commit eed25b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/trouble/view/preview.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ end
function M.create(item)
local buf = item.buf or vim.fn.bufnr(item.filename)

if item.filename and vim.fn.isdirectory(item.filename) then
if item.filename and vim.fn.isdirectory(item.filename) == 1 then
return
end

Expand Down

0 comments on commit eed25b2

Please sign in to comment.