Skip to content

Commit cebf53c

Browse files
committed
docs(#3241): revert api function changes
1 parent c74dc20 commit cebf53c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/vimdoc_config.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ return {
143143
-- remove the API prefix from the left aligned function name
144144
-- this will cascade into fn_helptag_fmt, which will apply the module prefix anyway
145145
local name, replaced = fun.name:gsub("^" .. fun.module .. "%.", "", 1)
146-
if (replaced ~= 2) then
146+
if (replaced ~= 1) then
147147
error(string.format("\n\nfun.name='%s' does not start with module\nfun=%s", fun.name, vim.inspect(fun)))
148148
end
149149

0 commit comments

Comments
 (0)