summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/reline.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/reline.rb b/lib/reline.rb
index 0873e9bcc3..f7678074de 100644
--- a/lib/reline.rb
+++ b/lib/reline.rb
@@ -166,7 +166,7 @@ module Reline
inner_readline(prompt, add_hist, true, &confirm_multiline_termination)
whole_buffer = line_editor.whole_buffer.dup
- whole_buffer.taint
+ whole_buffer.taint if RUBY_VERSION < '2.7'
if add_hist and whole_buffer and whole_buffer.chomp.size > 0
Reline::HISTORY << whole_buffer
end
@@ -179,7 +179,7 @@ module Reline
inner_readline(prompt, add_hist, false)
line = line_editor.line.dup
- line.taint
+ line.taint if RUBY_VERSION < '2.7'
if add_hist and line and line.chomp.size > 0
Reline::HISTORY << line.chomp
end