class Reline::LineEditor
def em_delete(key)
def em_delete(key) ne.empty? and (not @is_multiline or @buffer_of_lines.size == 1) and key == "\C-d".ord e = nil buffer_of_lines.size > 1 roll_down(@highest_in_all - @first_line_started_from) ne::IOGate.move_cursor_column(0) = true sh @byte_pointer < @line.bytesize tted_last = @line.byteslice(@byte_pointer, @line.bytesize) ar = splitted_last.grapheme_clusters.first h = Reline::Unicode.get_mbchar_width(mbchar) sor_max -= width e, = byteslice!(@line, @byte_pointer, mbchar.bytesize) @is_multiline and @byte_pointer == @line.bytesize and @buffer_of_lines.size > @line_index + 1 sor = calculate_width(@line) e_pointer = @line.bytesize e += @buffer_of_lines.delete_at(@line_index + 1) sor_max = calculate_width(@line) fer_of_lines[@line_index] = @line ender_all = true t_height += 1