From f0172fc7ee9f0c27cb543f52deae477c9ada4c79 Mon Sep 17 00:00:00 2001 From: tomoya ishida Date: Fri, 23 Feb 2024 21:32:55 +0900 Subject: [PATCH] [ruby/irb] Remove workaround for empty lines in dynamic_prompt (https://github.com/ruby/irb/pull/884) https://github.com/ruby/irb/commit/820b9e8dd6 --- lib/irb.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/irb.rb b/lib/irb.rb index f5a7d24da7..5598885866 100644 --- a/lib/irb.rb +++ b/lib/irb.rb @@ -1138,7 +1138,6 @@ module IRB 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 = []