class Reline::LineEditor

def move_completed_list(list, direction)

def move_completed_list(list, direction)
completion_state
ompletionState::NORMAL, CompletionState::COMPLETION,
ompletionState::MENU, CompletionState::MENU_WITH_PERFECT_MATCH
pletion_state = CompletionState::JOURNEY
lt = retrieve_completion_block
rn if result.nil?
osing, target, postposing = result
pletion_journey_data = CompletionJourneyData.new(
eposing, postposing,
arget] + list.select{ |item| item.start_with?(target) }, 0)
completion_journey_data.list.size == 1
ompletion_journey_data.pointer = 0

se direction
en :up
@completion_journey_data.pointer = @completion_journey_data.list.size - 1
en :down
@completion_journey_data.pointer = 1
d
pletion_state = CompletionState::JOURNEY
 direction
 :up
ompletion_journey_data.pointer -= 1
 @completion_journey_data.pointer < 0
@completion_journey_data.pointer = @completion_journey_data.list.size - 1
d
 :down
ompletion_journey_data.pointer += 1
 @completion_journey_data.pointer >= @completion_journey_data.list.size
@completion_journey_data.pointer = 0
d
ted = @completion_journey_data.list[@completion_journey_data.pointer]
ne = (@completion_journey_data.preposing + completed + @completion_journey_data.postposing).split("\n")[@line_index]
= new_line.nil? ? String.new(encoding: @encoding) : new_line
o_pointer = (@completion_journey_data.preposing + completed).split("\n").last
o_pointer = String.new(encoding: @encoding) if line_to_pointer.nil?
r_max = calculate_width(@line)
r = calculate_width(line_to_pointer)
pointer = line_to_pointer.bytesize