diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-23 08:55:35 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-23 08:55:35 +0000 |
commit | 00d8b1a85d718c5bc8d648aeb88b114396d3e799 (patch) | |
tree | 9d6103096a40f4452d9d085f49417e226a6e3694 | |
parent | 2cd1f852e1404462f97a49856b1984d5dd49badc (diff) |
* 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
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | lib/irb.rb | 3 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,9 @@ +Fri Oct 23 17:55:29 2015 SHIBATA Hiroshi <[email protected]> + + * 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 + Fri Oct 23 16:35:08 2015 SHIBATA Hiroshi <[email protected]> * lib/ipaddr.rb, test/test_ipaddr.rb: Reject invalid address contained 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) |