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