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

Cursor should be at line head after line breaking

This commit is contained in:
aycabta 2019-05-21 18:45:00 +09:00
parent fd95ab44c6
commit bb5b4f9044

View file

@ -1037,6 +1037,7 @@ class Reline::LineEditor
next_line = @line.byteslice(@byte_pointer, @line.bytesize - @byte_pointer)
cursor_line = @line.byteslice(0, @byte_pointer)
insert_new_line(cursor_line, next_line)
@cursor = 0
if @line_index == (@buffer_of_lines.size - 1)
@is_confirm_multiline_termination = true
end