Skip to content

Commit

Permalink
Merge pull request #5275 from JackLin00/master
Browse files Browse the repository at this point in the history
[fix]Fixed the failure of the command line completion function in linux
  • Loading branch information
waruqi committed Jun 29, 2024
2 parents bdd90db + 3e76e86 commit dba39b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xmake/modules/private/utils/completer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dba39b4

Please sign in to comment.