mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-16 05:24:20 +02:00
get rid of utils.Cut since we can now rely on strings.Cut instead
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user