When accidentally pasting a large amount of text and dragging, vte
crashed when trying to do a strcmp with terminal->pvt->selection.
has_selection is true so I need to investigate how the two variables
got out of sync.
I "fixed" this by setting ->has_selection to true after setting ->selection AND
checking ->selection before doing strcmp.