Various fixes from the completion merge

This commit is contained in:
Kovid Goyal
2022-09-26 11:22:48 +05:30
parent 97716fea8b
commit 262e2fb7a3
8 changed files with 15 additions and 9 deletions

View File

@@ -113,7 +113,7 @@ func complete_word(word string, completions *Completions, only_args_allowed bool
}
}
}
if !cmd.SubCommandMustBeFirst && cmd.ArgCompleter != nil {
if cmd.SubCommandIsOptional && cmd.ArgCompleter != nil {
cmd.ArgCompleter(completions, word, arg_num)
}
return