nvimdev / dashboard-nvim

vim dashboard
MIT License
2.19k stars 177 forks source link

fix: accurately identify files within current working directory for MRU filtering #459

Closed izumin5210 closed 1 month ago

izumin5210 commented 1 month ago

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.