Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

config: fix menu selection when no remotes

Nick Craig-Woodee14efd3c23a
diff --git a/fs/config.go b/fs/config.go
index 993dacae1..3c2edbac3 100644
--- a/fs/config.go
+++ b/fs/config.go
@@ -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':