Removed caret positioning code as it keeps blowing up

I got an `IndexOutOfBoundsException` in this code. We don't really need it so removing