Ensure yanked text ends with newline if motion is line-wise

Add newline character to the register when the yanked line is the last
line of the document and the motion is linewise.
Merge pull request #357 from garcg/fix-yank-line-no-newline

Ensure yanked text ends with newline if motion is line-wise