Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ConPTY: when pasting, replace "\r\n" with "\n"
On Windows, most copying-and-pasting will use CRLF vs. LF -- this means that pasting from Windows *into* Alacritty will likely end-up with duplicated newlines, as Alacritty will send *both* '\r' and '\n'. This change replaces "\r\n" with "\n" when pasting, such that these duplicated newlines do not appear. See: alacritty#2324 (comment)
- Loading branch information
8d2d1eb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this issue is present not only on Windows, but on macOS too.
rebuilding alacritty with this one line modification completely solved the problem for me, it's strange that they haven't pulled this yet
8d2d1eb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@homedirectory it appearing on macOS is super suspicious (to the extent that I can't believe it is true). Are you SSHing to a Windows machine from macOS?
8d2d1eb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andrewvaughanj no, i am not sshing to a windows machine
8d2d1eb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you trying to copy a file with Windows line endings?
8d2d1eb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, i was testing it by copying text from different places (HTTP requests from BurpSuite, text from Wikipedia, etc.) and it always behaved the same