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

Fix underflow panics when using TextPrinter::push_span_nobreak #322

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

ulyssa
Copy link
Owner

@ulyssa ulyssa commented Aug 15, 2024

This fixes #310, where the TextPrinter::remaining function can panic on underflow due to the width getting too large after a push_span_break method call.

@ulyssa ulyssa added this to the v0.0.10 milestone Aug 15, 2024
@ulyssa ulyssa enabled auto-merge (squash) August 15, 2024 03:30
@ulyssa ulyssa merged commit 54cb799 into main Aug 15, 2024
4 checks passed
@ulyssa ulyssa deleted the nobreak-underflow branch August 15, 2024 03:48
This was referenced Aug 15, 2024
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.

Panic on terminal resize
1 participant