config: fix menu selection when no remotes

This commit is contained in:
Nick Craig-Wood 2017-06-10 10:43:38 +01:00
parent b4be7d65a6
commit ee14efd3c2

View file

@ -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':