ruby-changes:72321
From: Nobuyoshi <ko1@a...>
Date: Sun, 26 Jun 2022 15:23:45 +0900 (JST)
Subject: [ruby-changes:72321] 0e5f9afff6 (master): [ruby/irb] Set prompt mode explictly
https://git.ruby-lang.org/ruby.git/commit/?id=0e5f9afff6 From 0e5f9afff6051d209d032abac23ec961d5d52d48 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 26 Jun 2022 15:21:22 +0900 Subject: [ruby/irb] Set prompt mode explictly Fix https://github.com/ruby/irb/pull/353 https://github.com/ruby/irb/commit/7db93f9326 --- test/irb/test_context.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/irb/test_context.rb b/test/irb/test_context.rb index b041403cb9..20f80e4af0 100644 --- a/test/irb/test_context.rb +++ b/test/irb/test_context.rb @@ -137,6 +137,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L137 input.instance_variable_set(:@stdout, StringIO.new) irb = IRB::Irb.new(IRB::WorkSpace.new(Object.new), input) irb.context.echo_on_assignment = :truncate + irb.context.prompt_mode = :DEFAULT out, err = capture_output do irb.eval_input end -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/