Make cut and copy act on whole lines when there is no selection

Issue #2382