Fixed text highlighting for copy/paste