Also split pasted content by selection when selection length is a multiple of clipboard length

Issue #2697