diff options
author | aycabta <aycabta@gmail.com> | 2019-08-22 06:02:21 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2019-08-22 06:02:27 +0900 |
commit | 800821831d6b4319e82d23291d3127212a2e7334 (patch) | |
tree | 6fe2af1256538224678b009189cde365db039777 /lib/reline | |
parent | 8d804e41a013ab1967a703a0ce388b579f735ac8 (diff) | |
download | ruby-800821831d6b4319e82d23291d3127212a2e7334.tar.gz |
Always check multiline termination
Diffstat (limited to 'lib/reline')
-rw-r--r-- | lib/reline/line_editor.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index 742ffedf9a..16736e025a 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -854,11 +854,7 @@ class Reline::LineEditor else temp_buffer[@line_index] = @line end - if temp_buffer.any?{ |l| l.chomp != '' } - @confirm_multiline_termination_proc.(temp_buffer.join("\n") + "\n") - else - false - end + @confirm_multiline_termination_proc.(temp_buffer.join("\n") + "\n") end def insert_text(text) |