class Reline::LineEditor
def rerender_added_newline(prompt, prompt_width, prompt_list)
def rerender_added_newline(prompt, prompt_width, prompt_list) r_of_lines[@previous_line_index] = @line = @buffer_of_lines[@line_index] ous_line_index = nil _pasting ll_down(1) s = whole_lines _line_prompt = @prompt_proc ? prompt_list[@line_index - 1] : prompt _line_prompt_width = @prompt_proc ? calculate_width(prev_line_prompt, true) : prompt_width _line = modify_lines(lines)[@line_index - 1] _cursor_up(@started_from) er_partial(prev_line_prompt, prev_line_prompt_width, prev_line, @first_line_started_from + @started_from, with_control: false) ll_down(1) er_partial(prompt, prompt_width, @line, @first_line_started_from + @started_from + 1, with_control: false) r = @cursor_max = calculate_width(@line) pointer = @line.bytesize st_in_all += @highest_in_this st_in_this = calculate_height_by_width(prompt_width + @cursor_max) _line_started_from += @started_from + 1 ed_from = calculate_height_by_width(prompt_width + @cursor) - 1