fix(dashboard): recent cwd filter matching

This commit is contained in:
Folke Lemaitre 2025-10-19 11:27:51 +02:00
parent a4de830e3d
commit 5c4365e993
No known key found for this signature in database
GPG key ID: 9B52594D560070AB

View file

@ -806,8 +806,8 @@ function M.oldfiles(opts)
if want then
done[file] = true
for _, f in ipairs(filter) do
local matches = file:sub(1, #f.path) == f.path and
(file:len() == #f.path or file:sub(#f.path + 1, #f.path + 1) == "/")
local matches = file:sub(1, #f.path) == f.path
and (file == f.path or file:sub(#f.path + 1, #f.path + 1):find("[/\\]"))
if matches ~= f.want then
want = false
break