mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user