class Reline::LineEditor
def vi_delete_prev_char(key)
def vi_delete_prev_char(key) _multiline and @cursor == 0 and @line_index > 0 fer_of_lines[@line_index] = @line sor = calculate_width(@buffer_of_lines[@line_index - 1]) e_pointer = @buffer_of_lines[@line_index - 1].bytesize fer_of_lines[@line_index - 1] += @buffer_of_lines.delete_at(@line_index) e_index -= 1 e = @buffer_of_lines[@line_index] sor_max = calculate_width(@line) ender_all = true @cursor > 0 _size = Reline::Unicode.get_prev_mbchar_size(@line, @byte_pointer) e_pointer -= byte_size e, mbchar = byteslice!(@line, @byte_pointer, byte_size) h = Reline::Unicode.get_mbchar_width(mbchar) sor -= width sor_max -= width