From bfd26cc18df6c6eca5b67cea5f2d6a6d557da468 Mon Sep 17 00:00:00 2001 From: aycabta Date: Sun, 2 Jun 2019 07:21:59 +0900 Subject: [PATCH] Reline.readmultiline always needs block to confirm termination --- lib/reline.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/reline.rb b/lib/reline.rb index 5192733235..437cf45b57 100644 --- a/lib/reline.rb +++ b/lib/reline.rb @@ -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 + inner_readline(prompt, add_hist, true, &confirm_multiline_termination) whole_buffer = @@line_editor.whole_buffer.dup whole_buffer.taint