Implement delegate based completion fof the ssh and hyperlinked_grep kittens

This commit is contained in:
Kovid Goyal
2022-11-14 15:41:59 +05:30
parent fd631bf402
commit 928a4db817
7 changed files with 33 additions and 6 deletions
+4
View File
@@ -183,6 +183,10 @@ func default_parse_args(cmd *Command, words []string, completions *Completions)
arg_num = 0
completions.current_word_idx_in_parent = 0
only_args_allowed = false
if cmd.Parse_args != nil {
cmd.Parse_args(cmd, words[i+1:], completions)
return
}
} else if cmd.Stop_processing_at_arg > 0 && arg_num >= cmd.Stop_processing_at_arg {
return
} else {