diff options
Diffstat (limited to 'lib/irb')
-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 |