mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-13 20:14:12 +02:00
Remove common prefix for bash as well
This commit is contained in:
@@ -14,6 +14,7 @@ var _ = fmt.Print
|
||||
func bash_output_serializer(completions []*Completions, shell_state map[string]string) ([]byte, error) {
|
||||
output := strings.Builder{}
|
||||
for _, mg := range completions[0].Groups {
|
||||
mg.remove_common_prefix()
|
||||
for _, m := range mg.Matches {
|
||||
fmt.Fprintln(&output, "COMPREPLY+=("+utils.QuoteStringForSH(m.Word)+")")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user