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
1 changed files with 2 additions and 1 deletions

View File

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