mirror of
https://github.com/rclone/rclone.git
synced 2025-04-14 22:08:24 +02:00
config: fix menu selection when no remotes
This commit is contained in:
parent
b4be7d65a6
commit
ee14efd3c2
@ -1058,7 +1058,8 @@ func EditConfig() {
|
|||||||
fmt.Printf("\n")
|
fmt.Printf("\n")
|
||||||
} else {
|
} else {
|
||||||
fmt.Printf("No remotes found - make a new one\n")
|
fmt.Printf("No remotes found - make a new one\n")
|
||||||
what = append(what[1:2], what[3:]...)
|
// take 2nd item and last 2 items of menu list
|
||||||
|
what = append(what[1:2], what[len(what)-2:]...)
|
||||||
}
|
}
|
||||||
switch i := Command(what); i {
|
switch i := Command(what); i {
|
||||||
case 'e':
|
case 'e':
|
||||||
|
Loading…
Reference in New Issue
Block a user