Fix hidden caret if an empty line is selected.