[前][次][番号順一覧][スレッド一覧]

ruby-changes:26571

From: keiju <ko1@a...>
Date: Wed, 26 Dec 2012 21:45:21 +0900 (JST)
Subject: [ruby-changes:26571] keiju:r38622 (trunk): * lib/irb/context.rb: make a correct prompt from

keiju	2012-12-26 21:42:09 +0900 (Wed, 26 Dec 2012)

  New Revision: 38622

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38622

  Log:
    * lib/irb/context.rb: make a correct prompt from
      IRB.conf[:IRB_NAME] on irb [Bug #6338]. Patched by sho-h.

  Modified files:
    trunk/ChangeLog
    trunk/lib/irb/context.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 38621)
+++ ChangeLog	(revision 38622)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Dec 26 21:32:46 2012  Keiju Ishitsuka  <keiju@i...>
+
+	* lib/irb/context.rb: make a correct prompt from
+	  IRB.conf[:IRB_NAME] on irb [Bug #6338]. Patched by sho-h.
+
 Wed Dec 26 21:09:19 2012  Keiju Ishitsuka  <keiju@i...>
 
 	* lib/irb/ext/math-mode.rb: make not able to change math-mode
Index: lib/irb/context.rb
===================================================================
--- lib/irb/context.rb	(revision 38621)
+++ lib/irb/context.rb	(revision 38622)
@@ -57,7 +57,7 @@ module IRB https://github.com/ruby/ruby/blob/trunk/lib/irb/context.rb#L57
       if IRB.conf[:SINGLE_IRB] or !defined?(JobManager)
 	@irb_name = IRB.conf[:IRB_NAME]
       else
-	@irb_name = "irb#"+IRB.JobManager.n_jobs.to_s
+	@irb_name = IRB.conf[:IRB_NAME]+"#"+IRB.JobManager.n_jobs.to_s
       end
       @irb_path = "(" + @irb_name + ")"
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]