### To Reproduce Steps to reproduce the behavior: 1. Type input: 1^{123} + 2. Click after + Index = [3]  ### Expected behavior Index = [2]