Skip to content

Commit 478f19f

Browse files
st0012hsbt
authored andcommitted
Deprecate USE_RELINE and USE_REIDLINE
Based on this commit: 93f87ec It appears that the maintainer @aycabta wanted to deprecate any `USE_*LINE` configs in favor of `USE_MULTILINE`. So we should deprecate `USE_RELINE` as well.
1 parent 9957e83 commit 478f19f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/irb/context.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,13 @@ def initialize(irb, workspace = nil, input_method = nil)
4949
if IRB.conf.has_key?(:USE_MULTILINE)
5050
@use_multiline = IRB.conf[:USE_MULTILINE]
5151
elsif IRB.conf.has_key?(:USE_RELINE) # backward compatibility
52+
warn <<~MSG.strip
53+
USE_RELINE is deprecated, please use USE_MULTILINE instead.
54+
MSG
5255
@use_multiline = IRB.conf[:USE_RELINE]
5356
elsif IRB.conf.has_key?(:USE_REIDLINE)
5457
warn <<~MSG.strip
55-
USE_REIDLINE is deprecated, please use USE_RELINE instead.
58+
USE_REIDLINE is deprecated, please use USE_MULTILINE instead.
5659
MSG
5760
@use_multiline = IRB.conf[:USE_REIDLINE]
5861
else

0 commit comments

Comments
 (0)