class Reline::LineEditor
def ed_newline(key)
def ed_newline(key) s_insert(force: true) _multiline config.editing_mode_is?(:vi_command) @line_index < (@buffer_of_lines.size - 1) ed_next_history(key) # means cursor down se # should check confirm_multiline_termination to finish? finish d @line_index == (@buffer_of_lines.size - 1) if confirm_multiline_termination finish else key_newline(key) end se # should check confirm_multiline_termination to finish? @previous_line_index = @line_index @line_index = @buffer_of_lines.size - 1 finish d history_pointer line::HISTORY[@history_pointer] = @line istory_pointer = nil sh