diff options
| author | ruki <[email protected]> | 2026-03-26 00:04:01 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-03-26 00:04:01 +0800 |
| commit | 887a080771e66e6488dfb68f16074dbeea461b25 (patch) | |
| tree | 30b625504279bb00252cd5a11e2a12d7f371e36d /xmake/modules/private/utils | |
| parent | e3f123981d80c54af1b29b87a4a173557a51d73d (diff) | |
improve completions
Diffstat (limited to 'xmake/modules/private/utils')
| -rw-r--r-- | xmake/modules/private/utils/completer.lua | 3 |
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 |
