Avoid 'middle-button close' pasting text, fixes #52