diff options
| author | gly <[email protected]> | 2022-12-27 16:36:06 +0100 |
|---|---|---|
| committer | gly <[email protected]> | 2022-12-27 16:36:06 +0100 |
| commit | b1d694ca3cd1230d7845b3a7aad06c40b0c3c453 (patch) | |
| tree | 9c83d705b7e585b39b11980d322e4672757eae70 | |
| parent | a189b538aa31b0ffe20403df1f03d7585a702d88 (diff) | |
intercept helpmenu when completing xrepo install
| -rw-r--r-- | xmake/modules/private/xrepo/quick_search/completion.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/modules/private/xrepo/quick_search/completion.lua b/xmake/modules/private/xrepo/quick_search/completion.lua index bdd9ce9cf..813028e30 100644 --- a/xmake/modules/private/xrepo/quick_search/completion.lua +++ b/xmake/modules/private/xrepo/quick_search/completion.lua @@ -32,6 +32,11 @@ end function main(complete, opt) local prefix = "" + -- if help menu, do nothing + if opt.helpmenu then + return {} + end + -- check prefix if present if complete:find("::", 1, true) then prefix = complete:sub(1, complete:find("::", 1, true) - 1) |
