From cdc2b9e6a628edb8471c0a8aff7f569cfd52481b Mon Sep 17 00:00:00 2001 From: Douglas Eichelberger Date: Sun, 1 Jan 2023 11:13:15 -0800 Subject: Remove handle_read_errors 1.9 comment only --- lib/pry/repl.rb | 5 +++++ 1 file changed, 5 insertions(+) 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 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. -- cgit v1.2.1