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>
This commit is contained in:
dundargoc 2023-04-04 23:37:46 +02:00 committed by GitHub
parent 872a534f6e
commit e826d09c18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -265,7 +265,7 @@ function M.inspect_tree(opts)
vim.wo[w].scrolloff = 5
vim.wo[w].wrap = false
vim.wo[w].foldmethod = 'manual' -- disable folding
vim.wo[w].foldmethod = 'manual' -- disable folding
vim.bo[b].buflisted = false
vim.bo[b].buftype = 'nofile'
vim.bo[b].bufhidden = 'wipe'