Merge "Calculate the visual to logical cursor position conversion table." into new_text