Fix ::selection bug

No issue

Fixes a weird issue where text would overlap other text.
Merge pull request #4029 from PaulAdamDavis/fix-text-selection-bug

Fix ::selection bug