diff options
author | keiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-26 12:29:28 +0000 |
---|---|---|
committer | keiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-26 12:29:28 +0000 |
commit | 35caefa5f1a6c20c1c9bc9bb92a681d7969b0f14 (patch) | |
tree | b4e5c6c37302f5bda282ca4e90c96db9aa765d81 /lib | |
parent | 32bb0eeb36fa811044e2fccd1b6addc92c3320f8 (diff) |
* lib/irb/ext/math-mode.rb: make not able to change math-mode
after irb starting [Bug #6302]. Patched by sho-h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/irb/ext/math-mode.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/ext/math-mode.rb b/lib/irb/ext/math-mode.rb index 4f3c5c18ba..067eb1e7fa 100644 --- a/lib/irb/ext/math-mode.rb +++ b/lib/irb/ext/math-mode.rb @@ -27,7 +27,7 @@ module IRB # 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 |