summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGly <[email protected]>2022-12-27 01:23:53 +0100
committerGly <[email protected]>2022-12-27 01:23:53 +0100
commit1e09d9c5f1d38b8536c713538e1642e5e35c972c (patch)
tree39efda818f6bc415207e7580294694d33025a6d3
parent6bead5589f0bd7f29990bb64e83053e6a34827af (diff)
make fucntion private
-rw-r--r--xmake/modules/private/xrepo/quick_search/completion.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/private/xrepo/quick_search/completion.lua b/xmake/modules/private/xrepo/quick_search/completion.lua
index e6d117b88..b8cb18891 100644
--- a/xmake/modules/private/xrepo/quick_search/completion.lua
+++ b/xmake/modules/private/xrepo/quick_search/completion.lua
@@ -20,7 +20,7 @@
import("private.xrepo.quick_search.cache")
-function xmake_package_complete(complete, opt)
+function _xmake_package_complete(complete, opt)
local packages = cache.get()
local candidates = {}
for _, package in ipairs(packages) do
@@ -39,7 +39,7 @@ function main(complete, opt)
end
local packages
if prefix == "" or prefix == "xmake" then
- packages = xmake_package_complete(complete, opt)
+ packages = _xmake_package_complete(complete, opt)
end
if packages and prefix ~= "" then
for _, package in ipairs(packages) do