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