Skip to content

Commit

Permalink
Add basic Reline support by allowing optional arguments to readline()
Browse files Browse the repository at this point in the history
Works towards pry#2063
  • Loading branch information
byteit101 committed Sep 30, 2022
1 parent e374c3a commit bcc362f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pry/repl.rb
Expand Up @@ -185,7 +185,7 @@ def read_line(current_prompt)
input_readline(current_prompt, false) # false since we'll add it manually
elsif coolline_available?
input_readline(current_prompt)
elsif input.method(:readline).arity == 1
elsif [1,-1,-2].include? input.method(:readline).arity # allow optional extra arguments
input_readline(current_prompt)
else
input_readline
Expand Down

0 comments on commit bcc362f

Please sign in to comment.