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:
parent
fd95ab44c6
commit
bb5b4f9044
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue