IME uses its own internal position/length instead of the selection position