Normalized last index of text cell with auto-generation

When using auto-generation tool (from multi-selection mode) on text-cell (to generate cells to fill a span), the last cell (positionned by user) must have its index normalized to index_of_last_generated_cell+1.