Skip to content

Commit

Permalink
[ruby/irb] Remove workaround for empty lines in dynamic_prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
tompng authored and matzbot committed Feb 23, 2024
1 parent 598b036 commit f0172fc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/irb.rb
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 f0172fc

Please sign in to comment.