Skip to content

Fixes long ouput with wrapped lines in narrow terminal crashes vscode#117734

Merged
Tyriar merged 1 commit intomicrosoft:mainfrom
jeanp413:fix-117682
Feb 26, 2021
Merged

Fixes long ouput with wrapped lines in narrow terminal crashes vscode#117734
Tyriar merged 1 commit intomicrosoft:mainfrom
jeanp413:fix-117682

Conversation

@jeanp413
Copy link
Contributor

The endLine variable was being incremented indefinitely because getLine() wraps around the underlying circular list buffer and all the lines in the buffer have isWrapped set to true

This PR fixes #117682

Copy link
Member

@Tyriar Tyriar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for looking into it!

@Tyriar Tyriar merged commit d0a46a0 into microsoft:main Feb 26, 2021
@jeanp413 jeanp413 deleted the fix-117682 branch February 26, 2021 21:35
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Terminal too narrow: Output with long lines (wrapping) freezes/crashes vscode

3 participants