fix(fragments): check for empty plugin names

This commit is contained in:
Folke Lemaitre 2024-06-25 00:31:32 +02:00
parent 378bfb4656
commit dea1f687fe
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ function M:add(plugin)
fragment.name = fragment.name fragment.name = fragment.name
or fragment.url and self.spec.get_name(fragment.url) or fragment.url and self.spec.get_name(fragment.url)
or fragment.dir and self.spec.get_name(fragment.dir) or fragment.dir and self.spec.get_name(fragment.dir)
if not fragment.name then if not fragment.name or fragment.name == "" then
return self.spec:error("Invalid plugin spec " .. vim.inspect(plugin)) return self.spec:error("Invalid plugin spec " .. vim.inspect(plugin))
end end