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

ruby-changes:26570

From: keiju <ko1@a...>
Date: Wed, 26 Dec 2012 21:29:39 +0900 (JST)
Subject: [ruby-changes:26570] keiju:r38621 (trunk): * lib/irb/ext/math-mode.rb: make not able to change math-mode

keiju	2012-12-26 21:29:28 +0900 (Wed, 26 Dec 2012)

  New Revision: 38621

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

  Log:
    * lib/irb/ext/math-mode.rb: make not able to change math-mode
      after irb starting [Bug #6302]. Patched by sho-h.

  Modified files:
    trunk/ChangeLog
    trunk/lib/irb/ext/math-mode.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 38620)
+++ ChangeLog	(revision 38621)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Dec 26 21:09:19 2012  Keiju Ishitsuka  <keiju@i...>
+
+	* lib/irb/ext/math-mode.rb: make not able to change math-mode
+	  after irb starting [Bug #6302]. Patched by sho-h.
+
 Wed Dec 26 12:52:36 2012  Keiju Ishitsuka  <keiju@i...>
 
 	* lib/irb/init.rb: change default debug level for
Index: lib/irb/ext/math-mode.rb
===================================================================
--- lib/irb/ext/math-mode.rb	(revision 38620)
+++ lib/irb/ext/math-mode.rb	(revision 38621)
@@ -27,7 +27,7 @@ module IRB https://github.com/ruby/ruby/blob/trunk/lib/irb/ext/math-mode.rb#L27
     # See IRB@Command+line+options and the unix manpage <code>bc(1)</code> for
     # more information.
     def math_mode=(opt)
-      if @math_mode == true && opt == false
+      if @math_mode == true && !opt
 	IRB.fail CantReturnToNormalMode
 	return
       end

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

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