diff options
-rw-r--r-- | lib/irb/color.rb | 1 | ||||
-rw-r--r-- | lib/irb/ruby-lex.rb | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/irb/color.rb b/lib/irb/color.rb index 37b0c2263f..81626993ca 100644 --- a/lib/irb/color.rb +++ b/lib/irb/color.rb @@ -192,6 +192,7 @@ module IRB # :nodoc: end end end + ensure $VERBOSE = verbose end diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb index e7adfb400c..35af148d02 100644 --- a/lib/irb/ruby-lex.rb +++ b/lib/irb/ruby-lex.rb @@ -139,8 +139,9 @@ class RubyLex tokens = lexer.parse end end - $VERBOSE = verbose tokens + ensure + $VERBOSE = verbose end def find_prev_spaces(line_index) |