[[ Bugfix 13741 ]] Fix multiple middle-click pasting issues
Merge pull request #1323 from runrevfraser/bugfix-13741

[[ Bugfix 13741 ]] Fix multiple middle-click pasting issues