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:
parent
8d804e41a0
commit
800821831d
1 changed files with 1 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue