Reline.readmultiline always needs block to confirm termination

This commit is contained in:
aycabta 2019-06-02 07:21:59 +09:00
Родитель 7b1c1b9492
Коммит bfd26cc18d
1 изменённых файлов: 1 добавлений и 5 удалений

Просмотреть файл

@ -272,11 +272,7 @@ module Reline
unless confirm_multiline_termination unless confirm_multiline_termination
raise ArgumentError.new('#readmultiline needs block to confirm multiline termination') raise ArgumentError.new('#readmultiline needs block to confirm multiline termination')
end end
if block_given? inner_readline(prompt, add_hist, true, &confirm_multiline_termination)
inner_readline(prompt, add_hist, true, &confirm_multiline_termination)
else
inner_readline(prompt, add_hist, true)
end
whole_buffer = @@line_editor.whole_buffer.dup whole_buffer = @@line_editor.whole_buffer.dup
whole_buffer.taint whole_buffer.taint