Clean up previous PR

This commit is contained in:
Kovid Goyal
2023-02-03 16:14:24 +05:30
parent 9adc474e3c
commit f1dc072045
4 changed files with 13 additions and 17 deletions

View File

@@ -15,8 +15,8 @@ import (
var _ = fmt.Print
func zsh_completion_script(commands []string) ([]byte, error) {
script := `#compdef kitty
func zsh_completion_script(commands []string) (string, error) {
return `#compdef kitty
_kitty() {
(( ${+commands[kitten]} )) || builtin return
@@ -31,8 +31,7 @@ if (( $+functions[compdef] )); then
compdef _kitty clone-in-kitty
compdef _kitty kitten
fi
`
return []byte(script), nil
`, nil
}
func shell_input_parser(data []byte, shell_state map[string]string) ([][]string, error) {