зеркало из https://github.com/github/ruby.git
Reline.readmultiline always needs block to confirm termination
This commit is contained in:
Родитель
7b1c1b9492
Коммит
bfd26cc18d
|
@ -272,11 +272,7 @@ module Reline
|
|||
unless confirm_multiline_termination
|
||||
raise ArgumentError.new('#readmultiline needs block to confirm multiline termination')
|
||||
end
|
||||
if block_given?
|
||||
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.taint
|
||||
|
|
Загрузка…
Ссылка в новой задаче