-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Retain wrapped line state when copying #693
Conversation
I created #695 to follow up the |
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.
Looks good 👍
Any chance of getting a minor release with this change? |
Ping @parisk |
Since this is the last week of June, let's hold on until next Monday. I can make an early release for 2.8 on Monday for sure. |
@Tyriar @parisk I've updated PWD (http://play-with-docker.com) with this release but it seems that for some reason I'm still getting \n when copying and pasting long lines. Is there something I'm missing? |
@marcosnils what command are you running? The program may be formatting based on the width of the terminal? It's also worth verifying whether copying works fine on Terminal.app/gnome-terminal/etc. A new issue with more details would be great 😃 |
@Tyriar if you go to PWD, type |
@marcosnils hmm, same thing works fine in VS Code using the new changes. Debugging PWD, it looks like |
I can reproduce the issue on master, however it doesn't occur in my vscode-release/1.14 branch which explains why it's working in VS Code. |
Ok I can't seem to reproduce in master anymore 😕 |
I know what's happening... Wrapped line status isn't being recorded correctly for the initial viewport that the terminal was initialized with (the first 24 rows). Get beyond this point and it works fine. |
@marcosnils it would be handy to be able to add sessions without needing to resize the window 😄 |
@marcosnils also selection seems not to be aligned with the cursor in your app, I'm guessing this is related to your CSS or something as it works fine in the demo and VS Code. |
thx for reporting this and providing a fix so quickly. Do you think it'll take long to be merged?. So I don't have to merge manually :) |
@marcosnils thanks for reporting so quickly 😄 @parisk normally does the publishing to npm, unless other issues come in I'd say we should publish this with 2.8.1 as soon as he's free. Might need to wait until Sunday night/Monday due to it being the weekend over there. |
@Tyriar thx. I was referring to merge to master. I can build from there and deploy manually. PWD is not using npm actually 😨 |
@marcosnils you could probably point at https://github.com/Tyriar/xterm.js/tree/767_initial_viewport_wrap in the meantime then. If you're using a custom npm dep this is how you point at a branch: https://github.com/Microsoft/vscode/blob/b32d2d44902eafbbdc252f0260cdbd938a5686f8/package.json#L46 |
Fixes #443