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:
Justin M. Keyes 2019-11-10 23:07:36 -08:00
parent 7a3d3257db
commit f59e1f58a2
1 changed files with 5 additions and 5 deletions

View File

@ -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,