Merge pull request #24905 from neovim/backport-23462-to-release-0.9

[Backport release-0.9] fix(editorconfig): add missing root validation
This commit is contained in:
zeertzjq
2023-08-28 04:47:25 +08:00
committed by GitHub

View File

@@ -202,6 +202,7 @@ local function parse(filepath, dir)
end
elseif key ~= nil and val ~= nil then
if key == 'root' then
assert(val == 'true' or val == 'false', 'root must be either "true" or "false"')
opts.root = val == 'true'
elseif pat and pat:match_str(filepath) then
opts[key] = val