Various fixes from the completion merge

This commit is contained in:
Kovid Goyal
2022-11-14 15:42:02 +05:30
parent 97716fea8b
commit 262e2fb7a3
8 changed files with 15 additions and 9 deletions
+1
View File
@@ -91,6 +91,7 @@ func GenerateCompletions(args []string) error {
all_completions := make([]*Completions, 0, 1)
for _, argv := range all_argv {
all_completions = append(all_completions, root.GetCompletions(argv, init_completions[output_type]))
root.ResetAfterParseArgs()
}
output, err := output_serializer(all_completions, shell_state)
if err == nil {