diff options
| author | Gly <[email protected]> | 2022-12-26 17:38:45 +0100 |
|---|---|---|
| committer | Gly <[email protected]> | 2022-12-26 17:38:45 +0100 |
| commit | 07b1c4d4f85f4b887e96ce3d42636ac0337dacfc (patch) | |
| tree | f89cfa116943fee6dca6d7c558a123f780d7eec6 | |
| parent | 841c51ede7ef6188759d13843d1e4b680664d0d9 (diff) | |
quick search complete return value and desc
| -rw-r--r-- | xmake/modules/private/xrepo/quick_search/complete.lua | 2 |
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 |
