Fixed caret position when inserting quotes and shortly after