class Reline::LineEditor

def search_prev_char(key, arg, need_next_char = false)

def search_prev_char(key, arg, need_next_char = false)
.instance_of?(String)
ted_char = key
ted_char = key.chr
otal = nil
= nil
= false
byteslice(0..@byte_pointer).grapheme_clusters.reverse_each do |mbchar|
tal has [byte_size, cursor]
ss total
skip cursor point
dth = Reline::Unicode.get_mbchar_width(mbchar)
tal = [mbchar.bytesize, width]

 inputed_char == mbchar
arg -= 1
if arg.zero?
  found = true
  break
end
d
dth = Reline::Unicode.get_mbchar_width(mbchar)
ev_total = total
tal = [total.first + mbchar.bytesize, total.last + width]
 need_next_char and found and total
_size, width = total
e_pointer -= byte_size
sor -= width
need_next_char and found and prev_total
_size, width = prev_total
e_pointer -= byte_size
sor -= width
ng_proc = nil