summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2026-03-26 06:36:04 +0800
committerGitHub <[email protected]>2026-03-26 06:36:04 +0800
commit76ecc812e959a271e2ebc476073948e354e643ea (patch)
tree30b625504279bb00252cd5a11e2a12d7f371e36d /xmake/modules
parent27168978bb7dd590192be1eee73beea969272b27 (diff)
parent887a080771e66e6488dfb68f16074dbeea461b25 (diff)
Merge pull request #7420 from xmake-io/zsh
improve zsh 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