diff options
| author | Opportunity <[email protected]> | 2020-05-22 11:55:24 +0800 |
|---|---|---|
| committer | Opportunity <[email protected]> | 2020-05-22 11:55:24 +0800 |
| commit | bc3e8bfc6fa89bdd94a552e2ad5738d781986d4f (patch) | |
| tree | 90f637179d2744a3c12a4a087e56f913ff692a2e | |
| parent | 56b9da92314ae31c2fb53504b2345114aeb8b3f6 (diff) | |
fix autocomplete kv
| -rw-r--r-- | xmake/modules/private/utils/complete.lua | 5 |
1 files changed, 5 insertions, 0 deletions
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) |
