diff options
Diffstat (limited to 'xmake/modules/private/utils/completer.lua')
| -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 |
