mirror of
https://github.com/neovim/neovim.git
synced 2026-10-24 22:57:53 -05:00
fix(filetype): report documented parameter name #41649
Problem: Invalid `args` parameter for `vim.filetype.match()` reports wrong parameter name `"arg"`. Solution: Report correct parameter name `"args"` instead.
This commit is contained in:
1 parent
9a8966879a
commit
9222ed3a4a
1 file changed
+1
-1
@@ -3255,7 +3255,7 @@ end
|
||||
--- (i.e., ".conf"), which indicates the filetype should be set with
|
||||
--- `:setf FALLBACK conf`. See |:setfiletype|.
|
||||
function M.match(args)
|
||||
vim.validate('arg', args, 'table')
|
||||
vim.validate('args', args, 'table')
|
||||
|
||||
if not (args.buf or args.filename or args.contents) then
|
||||
error('At least one of "buf", "filename", or "contents" must be given')
|
||||
|
||||
Reference in new issue
Block a user