get rid of utils.Cut since we can now rely on strings.Cut instead

This commit is contained in:
Kovid Goyal
2023-03-04 13:37:55 +05:30
parent defac0c061
commit a2887bb9e0
12 changed files with 24 additions and 35 deletions

View File

@@ -7,9 +7,9 @@ import (
"fmt"
"io"
"os"
"strings"
"kitty/tools/tty"
"kitty/tools/utils"
)
func debug(args ...any) {
@@ -81,7 +81,7 @@ func GenerateCompletions(args []string) error {
}
shell_state := make(map[string]string, n)
for _, arg := range args {
k, v, found := utils.Cut(arg, "=")
k, v, found := strings.Cut(arg, "=")
if !found {
return fmt.Errorf("Invalid shell state specification: %s", arg)
}