diff options
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/private/utils/completer.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/modules/private/utils/completer.lua b/xmake/modules/private/utils/completer.lua index f205ba865..868c1ce09 100644 --- a/xmake/modules/private/utils/completer.lua +++ b/xmake/modules/private/utils/completer.lua @@ -206,7 +206,9 @@ function completer:_complete_option_v(options, current, completing) local candidates = {} if #values > 0 and type(values[1]) == "string" then for _, v in ipairs(values) do - table.insert(candidates, { value = v, is_complete = true }) + if v:startswith(completing) then + table.insert(candidates, { value = v, is_complete = true }) + end end else for _, v in ipairs(values) do |
