forked from TrueCloudLab/rclone
config: fix menu selection when no remotes
This commit is contained in:
parent
b4be7d65a6
commit
ee14efd3c2
1 changed files with 2 additions and 1 deletions
|
@ -1058,7 +1058,8 @@ func EditConfig() {
|
|||
fmt.Printf("\n")
|
||||
} else {
|
||||
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 {
|
||||
case 'e':
|
||||
|
|
Loading…
Add table
Reference in a new issue