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

@@ -155,7 +155,7 @@ func ChainCompleters(completers ...CompletionFunc) CompletionFunc {
func CompletionForWrapper(wrapped_cmd string) func(completions *Completions, word string, arg_num int) {
return func(completions *Completions, word string, arg_num int) {
completions.Delegate.NumToRemove = completions.CurrentWordIdx + 1
completions.Delegate.NumToRemove = completions.CurrentWordIdx
completions.Delegate.Command = wrapped_cmd
}
}