From bc3e8bfc6fa89bdd94a552e2ad5738d781986d4f Mon Sep 17 00:00:00 2001 From: Opportunity Date: Fri, 22 May 2020 11:55:24 +0800 Subject: fix autocomplete kv --- xmake/modules/private/utils/complete.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xmake/modules/private/utils/complete.lua') diff --git a/xmake/modules/private/utils/complete.lua b/xmake/modules/private/utils/complete.lua index 10c9e7d66..a50bc907a 100644 --- a/xmake/modules/private/utils/complete.lua +++ b/xmake/modules/private/utils/complete.lua @@ -43,6 +43,11 @@ function _print_candidate(is_complate, ...) end function _find_candidates(candidates, find) + + if type(candidates) ~= 'table' then + return {} + end + local has_candidate = false local results = table.new(#candidates, 0) -- cgit v1.3.1