diff options
author | Douglas Eichelberger <dduugg@gmail.com> | 2023-01-01 11:13:15 -0800 |
---|---|---|
committer | Douglas Eichelberger <dduugg@gmail.com> | 2023-01-01 11:13:15 -0800 |
commit | cdc2b9e6a628edb8471c0a8aff7f569cfd52481b (patch) | |
tree | b617a33b14ab59929a3611c4dbd38ebcf031cab5 | |
parent | 313bf4d701961160a29c9147fb89138c0afce11d (diff) | |
download | pry-cdc2b9e6a628edb8471c0a8aff7f569cfd52481b.tar.gz |
Remove handle_read_errors 1.9 comment only
-rw-r--r-- | lib/pry/repl.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/pry/repl.rb b/lib/pry/repl.rb index c5550bc9..9a58b827 100644 --- a/lib/pry/repl.rb +++ b/lib/pry/repl.rb @@ -140,6 +140,11 @@ class Pry should_retry = false retry + # Handle <Ctrl+C> like Bash: empty the current input buffer, but don't + # quit. + rescue Interrupt + return :control_c + # If we get a random error when trying to read a line we don't want to # automatically retry, as the user will see a lot of error messages # scroll past and be unable to do anything about it. |