1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[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)