Lines Matching refs:last_insert_position
349 size_t last_insert_position = next_operation_index_to_insert_ == 0 in AddOperationRecord() local
356 if (next_operation_index_to_undo_ != last_insert_position) { in AddOperationRecord()
357 if (next_operation_index_to_undo_ > last_insert_position) { in AddOperationRecord()
360 while (last_insert_position != 0) { in AddOperationRecord()
361 operation_buffer_[last_insert_position].reset(); in AddOperationRecord()
362 --last_insert_position; in AddOperationRecord()
368 last_insert_position = max_edit_operations_ - 1; in AddOperationRecord()
372 while (next_operation_index_to_undo_ != last_insert_position) { in AddOperationRecord()
373 operation_buffer_[last_insert_position].reset(); in AddOperationRecord()
374 --last_insert_position; in AddOperationRecord()
380 ++last_insert_position; in AddOperationRecord()
381 if (last_insert_position >= max_edit_operations_) in AddOperationRecord()
382 last_insert_position = 0; in AddOperationRecord()
384 operation_buffer_[last_insert_position] = std::move(op); in AddOperationRecord()
386 (last_insert_position + 1) % max_edit_operations_; in AddOperationRecord()
387 next_operation_index_to_undo_ = last_insert_position; in AddOperationRecord()