support for selection deletion (multiline) and pasting (multiline with problems)'