summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGly <[email protected]>2022-12-26 17:38:45 +0100
committerGly <[email protected]>2022-12-26 17:38:45 +0100
commit07b1c4d4f85f4b887e96ce3d42636ac0337dacfc (patch)
treef89cfa116943fee6dca6d7c558a123f780d7eec6
parent841c51ede7ef6188759d13843d1e4b680664d0d9 (diff)
quick search complete return value and desc
-rw-r--r--xmake/modules/private/xrepo/quick_search/complete.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/private/xrepo/quick_search/complete.lua b/xmake/modules/private/xrepo/quick_search/complete.lua
index 48de72e56..224aba0b6 100644
--- a/xmake/modules/private/xrepo/quick_search/complete.lua
+++ b/xmake/modules/private/xrepo/quick_search/complete.lua
@@ -4,7 +4,7 @@ function main(complete, opt)
local candidates = {}
for _, package in ipairs(packages) do
if package.name:startswith(complete) then
- table.insert(candidates, package.name)
+ table.insert(candidates, { value = package.name, description = package.description })
end
end
return candidates