class Reline::LineEditor
def vi_to_column(key, arg: 0)
def vi_to_column(key, arg: 0) pointer, @cursor = @line.grapheme_clusters.inject([0, 0]) { |total, gc| tal has [byte_size, cursor] ar_width = Reline::Unicode.get_mbchar_width(gc) total.last + mbchar_width) >= arg eak total f (total.last + mbchar_width) >= @cursor_max eak total tal = [total.first + gc.bytesize, total.last + mbchar_width] tal