Make remove-previous-digit logic aware of cursor position

If we long-press '0' at the middle of digits intending to insert
'+', we cannot it easily because current logic doesn't consider the
current cursor position. This change will fix the behavior.

Bug: 6041729
Change-Id: Iaaea5addf17f332710c3522e27279a7d2448286b
1 file changed