change caret position to be inline