Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Have EOF insert a newline before returning
Browse files Browse the repository at this point in the history
Ctrl+D now leaves the shell prompt with `> ` before the prompt line
  • Loading branch information
Luit committed Feb 18, 2015
1 parent ff1e29b commit 33f17cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func main() {
if err != nil {
if err == io.EOF {
// Quit without error on Ctrl^D
fmt.Println()
break
}
panic(err)
Expand Down

0 comments on commit 33f17cb

Please sign in to comment.