diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-01-05 17:42:05 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2021-01-05 18:07:18 +0900 |
commit | 903af74bbd2998cbc159c70010fdba0543509a0f (patch) | |
tree | 5f3d07500dce0aea29bb794e4a4df5a3cb3841cd | |
parent | 0123bc9d3851c79338b9df509a82b74c93371381 (diff) |
[ruby/irb] Ensure to restore $VERBOSE
https://github.com/ruby/irb/commit/cef474a76a
-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) |