1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Always check multiline termination

This commit is contained in:
aycabta 2019-08-22 06:02:21 +09:00
parent 8d804e41a0
commit 800821831d

View file

@ -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)