iterm2 adds line break when copying text

I had an issue that drove me crazy for weeks.

When I would highlight text in iterm2 to copy it, upon pasting it would always add a carriage return (line-break) at the end of the line. Thus the line that I copied would not be contiguous.

This is extremely annoying when attempting to copy log file contents.

The solution was simpler and somewhat counter intuitive.

In iterm2 there is an option under Preferences –> General –> Selection

Check “Copied text includes trailing newline”

This entry was posted in MAC-OSX and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *