diff options
author | aycabta <aycabta@gmail.com> | 2019-06-02 07:21:59 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2019-06-02 07:21:59 +0900 |
commit | bfd26cc18df6c6eca5b67cea5f2d6a6d557da468 (patch) | |
tree | 82d8980d5f31ae801e04dd1787eb9d5c6f9c8d91 /lib | |
parent | 7b1c1b949201b5ebe5be597ec27317ea6e9f0841 (diff) | |
download | ruby-bfd26cc18df6c6eca5b67cea5f2d6a6d557da468.tar.gz |
Reline.readmultiline always needs block to confirm termination
Diffstat (limited to 'lib')
-rw-r--r-- | lib/reline.rb | 6 |
1 files changed, 1 insertions, 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 |