fix(picker.lsp): include_current on Windows. Closes #678

This commit is contained in:
Folke Lemaitre 2025-01-21 12:29:37 +01:00
parent c642aad9d8
commit 66d2854ea0
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -187,7 +187,7 @@ function M.get_locations(method, opts, filter)
if not opts.include_current then if not opts.include_current then
---@param item vim.quickfix.entry ---@param item vim.quickfix.entry
items = vim.tbl_filter(function(item) items = vim.tbl_filter(function(item)
if item.filename ~= fname then if vim.fs.normalize(item.filename) ~= fname then
return true return true
end end
if not item.lnum then if not item.lnum then