When copying the current line discard its newline (fixes #347)