Fixing caret for multilines.