From 887a080771e66e6488dfb68f16074dbeea461b25 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 26 Mar 2026 00:04:01 +0800 Subject: improve completions --- xmake/modules/private/utils/completer.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xmake/modules/private/utils/completer.lua') 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 -- cgit v1.3.1