mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-25 17:52:02 +02:00
get rid of utils.Cut since we can now rely on strings.Cut instead
This commit is contained in:
@@ -91,15 +91,15 @@ func parse_place() (err error) {
|
||||
if opts.Place == "" {
|
||||
return nil
|
||||
}
|
||||
area, pos, found := utils.Cut(opts.Place, "@")
|
||||
area, pos, found := strings.Cut(opts.Place, "@")
|
||||
if !found {
|
||||
return fmt.Errorf("Invalid --place specification: %s", opts.Place)
|
||||
}
|
||||
w, h, found := utils.Cut(area, "x")
|
||||
w, h, found := strings.Cut(area, "x")
|
||||
if !found {
|
||||
return fmt.Errorf("Invalid --place specification: %s", opts.Place)
|
||||
}
|
||||
l, t, found := utils.Cut(pos, "x")
|
||||
l, t, found := strings.Cut(pos, "x")
|
||||
if !found {
|
||||
return fmt.Errorf("Invalid --place specification: %s", opts.Place)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user