class Reline::LineEditor
def ed_search_prev_history(key, arg: 1)
def ed_search_prev_history(key, arg: 1) y = nil ter = nil o = nil = @line.slice(0, @byte_pointer) story_pointer.nil? rn if not @line.empty? and substr.empty? ory = Reline::HISTORY @history_pointer.zero? ory = nil inter = nil ory = Reline::HISTORY.slice(0, @history_pointer) if history.nil? _multiline inter = history.rindex { |h| split("\n").each_with_index { |l, i| if l.start_with?(substr) line_no = i break end t line_no.nil? inter = history.rindex { |l| start_with?(substr) if h_pointer.nil? ry_pointer = h_pointer _multiline fer_of_lines = Reline::HISTORY[@history_pointer].split("\n") fer_of_lines = [String.new(encoding: @encoding)] if @buffer_of_lines.empty? e_index = line_no e = @buffer_of_lines[@line_index] ender_all = true e = Reline::HISTORY[@history_pointer] r_max = calculate_width(@line) 1 rch_prev_history(key, arg: arg) if arg > 0