summaryrefslogtreecommitdiff
path: root/lib/irb.rb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2019-06-19 09:19:41 +0900
committeraycabta <aycabta@gmail.com>2019-06-19 09:19:41 +0900
commitd009e321a08d2ca401fceefa638e7e50872f5f54 (patch)
treee5184b43b181b104d04166a7cbe371d74493cba6 /lib/irb.rb
parentc9729329862a979f2d07d7907c7a515dfcfb2ba4 (diff)
Use IRB.conf[:AUTO_INDENT] setting in multiline mode
Diffstat (limited to 'lib/irb.rb')
-rw-r--r--lib/irb.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/irb.rb b/lib/irb.rb
index 2c7b17d..5ba0679 100644
--- a/lib/irb.rb
+++ b/lib/irb.rb
@@ -491,6 +491,8 @@ module IRB
end
end
+ @scanner.set_auto_indent(@context) if @context.auto_indent_mode
+
@scanner.each_top_level_statement do |line, line_no|
signal_status(:IN_EVAL) do
begin