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

Fixed render issue where writeline inside status caused corrupt output #415 #694 #1132

Merged

Conversation

fredrikbentzen
Copy link
Contributor

Issues: #415 #694

The problem was inside the method PositionCursor in LiveRenderable where the cursor (before the fix) just moved from to the bottom to the starting point without clearing the lines it passed through. This caused the statusmessage to still be visible when the writeline message was the first renderable to be rendered and its second/wrapped line (the line where the statusmessage still was present) was shorter than the statusmessage.

I've fixed it by clearing the lines it passes through when re-positioning the cursor for re-rendering.

Additional context, illustrations and issue description can be found in the referenced issues.

@dnfadmin
Copy link

dnfadmin commented Jan 11, 2023

CLA assistant check
All CLA requirements met.

@mscottford
Copy link

I'd love to see this get merged in. Is there a way that I can help resolve any blockers that are standing in the way of doing so?

@patriksvensson
Copy link
Contributor

@mscottford Absolutely. I'll take a look at it tomorrow.

Copy link
Contributor

@patriksvensson patriksvensson left a comment

Choose a reason for hiding this comment

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

Looks good to me! 👍

@patriksvensson patriksvensson merged commit 71a5d83 into spectreconsole:main Jun 4, 2023
@patriksvensson
Copy link
Contributor

Merged! Thank you for your contribution. Much appreciated! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants