Skip to content

Commit

Permalink
Notify fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
ollbx committed Jan 31, 2025
1 parent a401b4c commit 0d605d9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lua/match-list/tracker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,15 @@ function Tracker:skip(amount, config)
local match = self._current_match

if config.filter(match) then
self:goto_match(match, config)
-- Go to the current item again, but don't notify.
local goto_config = vim.tbl_extend("force", config, {
notify = function() end
})

self:goto_match(match, goto_config)

-- Show the "no more matches" notification.
config.notify()
return match
end
end
Expand Down

0 comments on commit 0d605d9

Please sign in to comment.