From 800821831d6b4319e82d23291d3127212a2e7334 Mon Sep 17 00:00:00 2001 From: aycabta Date: Thu, 22 Aug 2019 06:02:21 +0900 Subject: [PATCH] Always check multiline termination --- lib/reline/line_editor.rb | 6 +----- 1 file changed, 1 insertion(+), 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)