mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 06:58:35 +00:00
Fix unused vararg
This commit is contained in:
@@ -255,7 +255,7 @@ vim.fn = setmetatable({}, {
|
|||||||
__index = function(t, key)
|
__index = function(t, key)
|
||||||
local _fn
|
local _fn
|
||||||
if vim.api[key] ~= nil then
|
if vim.api[key] ~= nil then
|
||||||
_fn = function(...)
|
_fn = function()
|
||||||
error(string.format("Tried to call API function with vim.fn: use vim.api.%s instead", key))
|
error(string.format("Tried to call API function with vim.fn: use vim.api.%s instead", key))
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user