Merge pull request #323 from Leihb/master

handle Ctrl-D
This commit is contained in:
Josh Baker 2018-06-02 04:49:58 -07:00 committed by GitHub
commit a0c94bc810
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -375,6 +375,8 @@ func main() {
}
} else if err == liner.ErrPromptAborted {
return
} else if err == io.EOF {
os.Exit(0)
} else {
fmt.Fprintf(os.Stderr, "Error reading line: %s", err.Error())
}