Always check multiline termination
This commit is contained in:
parent
8d804e41a0
commit
800821831d
@ -854,11 +854,7 @@ class Reline::LineEditor
|
|||||||
else
|
else
|
||||||
temp_buffer[@line_index] = @line
|
temp_buffer[@line_index] = @line
|
||||||
end
|
end
|
||||||
if temp_buffer.any?{ |l| l.chomp != '' }
|
|
||||||
@confirm_multiline_termination_proc.(temp_buffer.join("\n") + "\n")
|
@confirm_multiline_termination_proc.(temp_buffer.join("\n") + "\n")
|
||||||
else
|
|
||||||
false
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def insert_text(text)
|
def insert_text(text)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user