[ruby/irb] Ensure to restore $VERBOSE

https://github.com/ruby/irb/commit/cef474a76a
This commit is contained in:
Nobuyoshi Nakada 2021-01-05 17:42:05 +09:00 committed by aycabta
parent 0123bc9d38
commit 903af74bbd
2 changed files with 3 additions and 1 deletions

View File

@ -192,6 +192,7 @@ module IRB # :nodoc:
end
end
end
ensure
$VERBOSE = verbose
end

View File

@ -139,8 +139,9 @@ class RubyLex
tokens = lexer.parse
end
end
$VERBOSE = verbose
tokens
ensure
$VERBOSE = verbose
end
def find_prev_spaces(line_index)