Skip to content

Commit

Permalink
fix(filter): range should also check that the buffer is the same
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 30, 2024
1 parent 30b939e commit fdd27d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/trouble/filter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ M.filters = {
end,
range = function(item, buf, ctx)
local main = ctx.main
if not main then
if not main or (main.buf ~= item.buf) then
return false
end
local range = item.range --[[@as trouble.Item]]
Expand Down

0 comments on commit fdd27d8

Please sign in to comment.