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: Skip padding time if it will overflow the allowed prefix length #1630

Merged
merged 1 commit into from Jan 26, 2024

Conversation

Nemo157
Copy link
Contributor

@Nemo157 Nemo157 commented Jan 26, 2024

Fixes issue from #1574 (comment) (though, I wasn't able to reproduce, the failure implies that PREFIX_LENGTH is inadequate for some situations, and the previous implementation would have been overwriting the already printed duration).

@Nemo157
Copy link
Contributor Author

Nemo157 commented Jan 26, 2024

Another option would be to then clamp to 1.. so that there is always at least 1 space of padding.

Copy link
Member

@ellie ellie left a comment

Choose a reason for hiding this comment

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

🙏

@ellie ellie enabled auto-merge (squash) January 26, 2024 11:53
@ellie ellie merged commit d9c40d6 into atuinsh:main Jan 26, 2024
8 checks passed
@akinomyoga
Copy link
Contributor

Thank you!

@Nemo157 Nemo157 deleted the checked-padding branch January 26, 2024 12:14
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.

None yet

3 participants