Skip to content

Commit 820b9e8

Browse files
authored
Remove workaround for empty lines in dynamic_prompt (#884)
1 parent 4bfdb23 commit 820b9e8

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

lib/irb.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1138,7 +1138,6 @@ def configure_io
11381138
end
11391139
if @context.io.respond_to?(:dynamic_prompt)
11401140
@context.io.dynamic_prompt do |lines|
1141-
lines << '' if lines.empty?
11421141
tokens = RubyLex.ripper_lex_without_warning(lines.map{ |l| l + "\n" }.join, local_variables: @context.local_variables)
11431142
line_results = IRB::NestingParser.parse_by_line(tokens)
11441143
tokens_until_line = []

0 commit comments

Comments
 (0)