class Reline::LineEditor
def em_upper_case(key)
def em_upper_case(key) ne.bytesize > @byte_pointer _size, = Reline::Unicode.em_forward_word(@line, @byte_pointer) = @line.byteslice(@byte_pointer, byte_size).grapheme_clusters.map { |mbchar| char =~ /[a-z]/ ? mbchar.upcase : mbchar in = @line.byteslice((@byte_pointer + byte_size)..-1) e = @line.byteslice(0, @byte_pointer) + part e_pointer = @line.bytesize sor = calculate_width(@line) sor_max = @cursor + calculate_width(rest) e += rest