summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2026-03-26 00:04:01 +0800
committerruki <[email protected]>2026-03-26 00:04:01 +0800
commit887a080771e66e6488dfb68f16074dbeea461b25 (patch)
tree30b625504279bb00252cd5a11e2a12d7f371e36d /xmake/modules
parente3f123981d80c54af1b29b87a4a173557a51d73d (diff)
improve completions
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/private/utils/completer.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/modules/private/utils/completer.lua b/xmake/modules/private/utils/completer.lua
index c98f3b672..38751abd7 100644
--- a/xmake/modules/private/utils/completer.lua
+++ b/xmake/modules/private/utils/completer.lua
@@ -203,6 +203,9 @@ function completer:_complete_option_v(options, current, completing)
end
-- transform values array to candidates array
local function _transform_values(values)
+ if not values then
+ return {}
+ end
local candidates = {}
if #values > 0 and type(values[1]) == "string" then
for _, v in ipairs(values) do