This pull request addresses an issue in the MRU (Most Recently Used) file filtering logic, where files outside the current working directory (cwd) could incorrectly be included. The previous implementation relied on a substring match, which caused files with similar directory prefixes to be incorrectly identified as being within the cwd.
For example, if the cwd is /foo/bar and a file is located at /foo/barrrr/baz, the previous implementation would incorrectly include /foo/barrrr/baz as being within /foo/bar due to a partial substring match.
This pull request addresses an issue in the MRU (Most Recently Used) file filtering logic, where files outside the current working directory (cwd) could incorrectly be included. The previous implementation relied on a substring match, which caused files with similar directory prefixes to be incorrectly identified as being within the cwd.
For example, if the
cwd
is/foo/bar
and a file is located at/foo/barrrr/baz
, the previous implementation would incorrectly include/foo/barrrr/baz
as being within/foo/bar
due to a partial substring match.