Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pasting text containing LF or CRLF behaves differently in different shells. #167

Closed
Kynolin opened this Issue Feb 27, 2019 · 3 comments

Comments

Projects
None yet
2 participants
@Kynolin
Copy link

Kynolin commented Feb 27, 2019

When pasting a block of text containing LF characters into a WSL instance, it works as expected. When pasting the same block of text containing CRLF characters, it will paste a blank line in between every line that was copied. I noticed this inside a python session, because it breaks the indentation when pasting. The opposite happens in a CMD session. Pasting CRLF works normally, and pasting LF will paste all the lines into one line.

To reproduce the issue, I just had a block of echo commands in VS Code, and I switched between LF/CRLF when copying and pasting.

I would guess the fix for this issue would be similar in nature to #103 and #164.

@sedwards2009

This comment has been minimized.

Copy link
Owner

sedwards2009 commented Mar 2, 2019

It sounds like more care needs to be taken when processing CR and LF chars. Extraterm should autodetect the line ending and paste the right number of 'enter' key presses.

@sedwards2009

This comment has been minimized.

Copy link
Owner

sedwards2009 commented Mar 9, 2019

Issue #103 is a very different issue, BTW.

@sedwards2009

This comment has been minimized.

Copy link
Owner

sedwards2009 commented Mar 9, 2019

Fixed in 0.41.1.

@sedwards2009 sedwards2009 added the fixed label Mar 9, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.