class Reline::LineEditor
def process_auto_indent
def process_auto_indent if not @check_new_auto_indent and @previous_line_index # move cursor up or down eck_new_auto_indent and @previous_line_index and @previous_line_index > 0 and @line_index > @previous_line_index x indent of a line when a newline is inserted to the next lines = whole_lines indent = @auto_indent_proc.(new_lines[0..-3].push(''), @line_index - 1, 0, true) @line.match(/\A */) _indent = md[0].count(' ') e = ' ' * new_indent + @line.lstrip indent = nil lt = @auto_indent_proc.(new_lines[0..-2], @line_index - 1, (new_lines[-2].size + 1), false) esult w_indent = result ew_indent&.>= 0 ine = ' ' * new_indent + @line.lstrip nes = whole_lines dent = @auto_indent_proc.(new_lines, @line_index, @byte_pointer, @check_new_auto_indent) _indent&.>= 0 new_lines[@line_index].match(/\A */) _indent = md[0].count(' ') check_new_auto_indent ne = @buffer_of_lines[@line_index] = ' ' * new_indent + @buffer_of_lines[@line_index].lstrip ursor = new_indent ursor_max = calculate_width(line) yte_pointer = new_indent ine = ' ' * new_indent + @line.lstrip ursor += new_indent - prev_indent ursor_max = calculate_width(@line) yte_pointer += new_indent - prev_indent _new_auto_indent = false