This commit is contained in:
Kovid Goyal
2022-09-19 19:38:10 +05:30
parent 53dc079c10
commit 454c2e32e7

View File

@@ -16,7 +16,6 @@ func bash_output_serializer(completions []*Completions, shell_state map[string]s
f := func(format string, args ...interface{}) { fmt.Fprintf(&output, format+"\n", args...) }
n := completions[0].Delegate.NumToRemove
if n > 0 {
n--
f("compopt +o nospace")
f("COMP_WORDS[%d]=%s", n, utils.QuoteStringForSH(completions[0].Delegate.Command))
f("_command_offset %d", n)