Fix config loop - fixes #25

This commit is contained in:
Nick Craig-Wood 2015-02-10 16:48:04 +00:00
parent 165e89c266
commit 8d1c0ad07c

View file

@ -330,6 +330,7 @@ func EditConfig() {
name := ChooseRemote() name := ChooseRemote()
EditRemote(name) EditRemote(name)
case 'n': case 'n':
nameLoop:
for { for {
fmt.Printf("name> ") fmt.Printf("name> ")
name := ReadLine() name := ReadLine()
@ -340,7 +341,7 @@ func EditConfig() {
fmt.Printf("Can't use %q as it can be confused a drive letter\n", name) fmt.Printf("Can't use %q as it can be confused a drive letter\n", name)
default: default:
NewRemote(name) NewRemote(name)
break break nameLoop
} }
} }
case 'd': case 'd':