fix(picker.recent): expand to full path before normalizing. Closes #1406

This commit is contained in:
Folke Lemaitre 2025-02-25 13:58:46 +01:00
parent 6442985c65
commit cf47fa7cee
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -14,6 +14,7 @@ local function oldfiles(filter, extra)
for f = i + 1, #files do for f = i + 1, #files do
i = f i = f
local file = files[f] local file = files[f]
file = vim.fn.fnamemodify(file, ":p")
file = svim.fs.normalize(file, { _fast = true, expand_env = false }) file = svim.fs.normalize(file, { _fast = true, expand_env = false })
local want = not done[file] and filter:match({ file = file, text = "" }) local want = not done[file] and filter:match({ file = file, text = "" })
done[file] = true done[file] = true