Fix selection keeping if collapsed caret