summaryrefslogtreecommitdiff
path: root/lib/irb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2019-07-15 01:07:37 +0900
committeraycabta <aycabta@gmail.com>2019-07-15 01:07:37 +0900
commit6d573691058b353840c504d16cc2df1eb0bb517c (patch)
tree4bb283c7fd14e5d6b8d8d5426eff3fcddaac5782 /lib/irb
parent82b058ff6067269c04265844c7df08a2971b0335 (diff)
Auto indent in IRB is enabled by default
Diffstat (limited to 'lib/irb')
-rw-r--r--lib/irb/context.rb8
-rw-r--r--lib/irb/init.rb2
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/irb/context.rb b/lib/irb/context.rb
index b7b2230856..9544a8aa1a 100644
--- a/lib/irb/context.rb
+++ b/lib/irb/context.rb
@@ -194,17 +194,17 @@ module IRB
# Can be either the default <code>IRB.conf[:AUTO_INDENT]</code>, or the
# mode set by #prompt_mode=
#
- # To enable auto-indentation in irb:
+ # To disable auto-indentation in irb:
#
- # IRB.conf[:AUTO_INDENT] = true
+ # IRB.conf[:AUTO_INDENT] = false
#
# or
#
- # irb_context.auto_indent_mode = true
+ # irb_context.auto_indent_mode = false
#
# or
#
- # IRB.CurrentContext.auto_indent_mode = true
+ # IRB.CurrentContext.auto_indent_mode = false
#
# See IRB@Configuration for more information.
attr_accessor :auto_indent_mode
diff --git a/lib/irb/init.rb b/lib/irb/init.rb
index 50a4d7b3bb..5069b7bbf7 100644
--- a/lib/irb/init.rb
+++ b/lib/irb/init.rb
@@ -105,7 +105,7 @@ module IRB # :nodoc:
}
@CONF[:PROMPT_MODE] = (STDIN.tty? ? :DEFAULT : :NULL)
- @CONF[:AUTO_INDENT] = false
+ @CONF[:AUTO_INDENT] = true
@CONF[:CONTEXT_MODE] = 3 # use binding in function on TOPLEVEL_BINDING
@CONF[:SINGLE_IRB] = false