From f85e453fe5b75dec78e46d6176c2279cb6ba73a3 Mon Sep 17 00:00:00 2001 From: hsbt Date: Fri, 23 Oct 2015 08:55:35 +0000 Subject: * lib/irb.rb: Ignored assignment of STDOUT.sync = true when irb.rb loaded. It's affected to IDE such as Jetbrain. [fix GH-864] Patch by @os97673 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/irb.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/irb.rb') diff --git a/lib/irb.rb b/lib/irb.rb index eb37ecda77..51961db20c 100644 --- a/lib/irb.rb +++ b/lib/irb.rb @@ -18,8 +18,6 @@ require "irb/ruby-lex" require "irb/input-method" require "irb/locale" -STDOUT.sync = true - # IRB stands for "interactive Ruby" and is a tool to interactively execute Ruby # expressions read from the standard input. # @@ -373,6 +371,7 @@ module IRB # Initializes IRB and creates a new Irb.irb object at the +TOPLEVEL_BINDING+ def IRB.start(ap_path = nil) + STDOUT.sync = true $0 = File::basename(ap_path, ".rb") if ap_path IRB.setup(ap_path) -- cgit v1.2.3