Skip to content

Commit

Permalink
Remove workaround for empty lines in dynamic_prompt (#884)
Browse files Browse the repository at this point in the history
  • Loading branch information
tompng authored Feb 23, 2024
1 parent 4bfdb23 commit 820b9e8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/irb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1138,7 +1138,6 @@ def configure_io
end
if @context.io.respond_to?(:dynamic_prompt)
@context.io.dynamic_prompt do |lines|
lines << '' if lines.empty?
tokens = RubyLex.ripper_lex_without_warning(lines.map{ |l| l + "\n" }.join, local_variables: @context.local_variables)
line_results = IRB::NestingParser.parse_by_line(tokens)
tokens_until_line = []
Expand Down

0 comments on commit 820b9e8

Please sign in to comment.