Skip to content

Commit

Permalink
CTRL-D now exits pry. Fixes #20
Browse files Browse the repository at this point in the history
  • Loading branch information
d4l3k committed Jul 14, 2017
1 parent 380a202 commit 25971cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pry/pry.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ func Apply(scope *Scope) {
currentPos = count
line = ""
index = 0
case 4: // Ctrl-D
fmt.Fprintln(out)
os.Exit(0)
}
}
}
Expand Down

0 comments on commit 25971cc

Please sign in to comment.