All completion tests pass again

This commit is contained in:
Kovid Goyal
2022-09-26 11:54:57 +05:30
parent 262e2fb7a3
commit 3bd4fd999a
5 changed files with 7 additions and 3 deletions

View File

@@ -187,7 +187,7 @@ func completion_parse_args(cmd *Command, words []string, completions *Completion
cmd = sc
arg_num = 0
completions.CurrentWordIdxInParent = 0
only_args_allowed = false
only_args_allowed = cmd.OnlyArgsAllowed
if cmd.ParseArgsForCompletion != nil {
cmd.ParseArgsForCompletion(cmd, words[i+1:], completions)
return