Skip to content

Commit

Permalink
Fix config loop - fixes #25
Browse files Browse the repository at this point in the history
  • Loading branch information
ncw committed Feb 10, 2015
1 parent 165e89c commit 8d1c0ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ func EditConfig() {
name := ChooseRemote()
EditRemote(name)
case 'n':
nameLoop:
for {
fmt.Printf("name> ")
name := ReadLine()
Expand All @@ -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':
Expand Down

0 comments on commit 8d1c0ad

Please sign in to comment.