Lua: mark some functions as "private"
Problem: scripts/gen_vimdoc.py gets confused and tries to generate docs for `fn_index` and `func`. Solution: Rename them to be private.
This commit is contained in:
parent
7a3d3257db
commit
f59e1f58a2
|
@ -261,14 +261,14 @@ end
|
|||
|
||||
|
||||
-- vim.fn.{func}(...)
|
||||
local function fn_index(t, key)
|
||||
local function func(...)
|
||||
local function _fn_index(t, key)
|
||||
local function _fn(...)
|
||||
return vim.call(key, ...)
|
||||
end
|
||||
t[key] = func
|
||||
return func
|
||||
t[key] = _fn
|
||||
return _fn
|
||||
end
|
||||
local fn = setmetatable({}, {__index=fn_index})
|
||||
local fn = setmetatable({}, {__index=_fn_index})
|
||||
|
||||
local module = {
|
||||
_update_package_paths = _update_package_paths,
|
||||
|
|
Loading…
Reference in New Issue