I noticed this in Firefox and IMO this is a browser bug. All I have to do is press the down arrow key (the cursor stays in place), or move my mouse under the line (and again the cursor stays in place) and the line does not get highlighted when I paste something in. It seems to me that FF assumes if your mouse is at the end of a line, you want to do something with that line.