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: renderer: erase the rest of the line when it's shorter than the … #1227

Merged
merged 5 commits into from
Nov 8, 2024

Conversation

aymanbagabas
Copy link
Member

@aymanbagabas aymanbagabas commented Nov 8, 2024

…width

When the cursor reaches the end of the line, any escape sequences that follow will only affect the last cell of the line. This is why we only erase the rest of the line when the line is shorter than the width of the terminal.

Fixes: #1225
Fixes: 0cef3c7 (feat(render): remove flickering)
Fixes: #1132

…width

When the cursor reaches the end of the line, any escape sequences that
follow will only affect the last cell of the line. This is why we only
erase the rest of the line when the line is shorter than the width of
the terminal.

Fixes: #1225
Fixes: 0cef3c7 (feat(render): remove flickering)
@aymanbagabas aymanbagabas merged commit 5b65f9a into main Nov 8, 2024
40 checks passed
@aymanbagabas aymanbagabas deleted the erase-last-cell branch November 8, 2024 16:55
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.

lipgloss styles rendered incorrectly when .Width() applied
2 participants