Fixed an edge case where the cursor wasn't removed when there was single/multi char selection.