aboutsummaryrefslogtreecommitdiffstats
path: root/lib/irb.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/irb.rb')
-rw-r--r--lib/irb.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/irb.rb b/lib/irb.rb
index 97af046d05..2bf46aa227 100644
--- a/lib/irb.rb
+++ b/lib/irb.rb
@@ -766,7 +766,10 @@ module IRB
# s-expression where the second selement of the top level array is an
# array of parsed expressions. The first element of each expression is the
# expression's type.
- ASSIGNMENT_NODE_TYPES.include?(Ripper.sexp(line)&.dig(1,-1,0))
+ verbose, $VERBOSE = $VERBOSE, nil
+ result = ASSIGNMENT_NODE_TYPES.include?(Ripper.sexp(line)&.dig(1,-1,0))
+ $VERBOSE = verbose
+ result
end
ATTR_TTY = "\e[%sm"