diff options
author | Marc-Andre Lafortune <[email protected]> | 2020-11-20 16:58:02 -0500 |
---|---|---|
committer | aycabta <[email protected]> | 2020-12-17 20:24:08 +0900 |
commit | 980f994b3b349486c5e64b51241330d4c9fc63f1 (patch) | |
tree | 23780c7f97a28bfb4bf8c1e0b0e25acdbcc2b2fa /lib/irb/init.rb | |
parent | 753222d72c8787f2d57781c2e55194da2d3d0d8f (diff) |
[ruby/irb] Change context-mode's default to new mode 4.
This new mode uses a copy of the TOPLEVEL_BINDING. This is compatible with refinements (contrary to mode 3), while keeping nested IRB sessions separate
https://github.com/ruby/irb/commit/25c731cb2f
Diffstat (limited to 'lib/irb/init.rb')
-rw-r--r-- | lib/irb/init.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/init.rb b/lib/irb/init.rb index 48b669f211..73ef420e60 100644 --- a/lib/irb/init.rb +++ b/lib/irb/init.rb @@ -108,7 +108,7 @@ module IRB # :nodoc: @CONF[:PROMPT_MODE] = (STDIN.tty? ? :DEFAULT : :NULL) @CONF[:AUTO_INDENT] = true - @CONF[:CONTEXT_MODE] = 3 # use binding in function on TOPLEVEL_BINDING + @CONF[:CONTEXT_MODE] = 4 # use a copy of TOPLEVEL_BINDING @CONF[:SINGLE_IRB] = false @CONF[:LC_MESSAGES] = Locale.new |