Cut/copy whole lines when no text is selected

Closes #3643