diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-04-04 23:37:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-04 23:37:46 +0200 |
commit | e826d09c18ab8840592b6cdbbcfe3e311a047174 (patch) | |
tree | 19b52e5f7b21d8891a144e87b6c290384cdc29d3 /runtime/lua/vim/fs.lua | |
parent | 872a534f6ef1b2948d834a1feaa158304071f46d (diff) | |
download | rneovim-e826d09c18ab8840592b6cdbbcfe3e311a047174.tar.gz rneovim-e826d09c18ab8840592b6cdbbcfe3e311a047174.tar.bz2 rneovim-e826d09c18ab8840592b6cdbbcfe3e311a047174.zip |
fix(windows): consistent normalization in fs.find
vim.fs.find(".luacheckrc")
```
c:\\projects\\neovim/.luacheckrc # before
c:/projects/neovim/.luacheckrc # after
```
Co-authored-by: kylo252 <59826753+kylo252@users.noreply.github.com>
Diffstat (limited to 'runtime/lua/vim/fs.lua')
-rw-r--r-- | runtime/lua/vim/fs.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/fs.lua b/runtime/lua/vim/fs.lua index 407b334f20..2a51bde263 100644 --- a/runtime/lua/vim/fs.lua +++ b/runtime/lua/vim/fs.lua @@ -216,7 +216,7 @@ function M.find(names, opts) ---@private local function add(match) - matches[#matches + 1] = match + matches[#matches + 1] = M.normalize(match) if #matches == limit then return true end |