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

Panic with gradient and font "console" #75

Closed
ropery opened this issue Feb 14, 2024 · 1 comment
Closed

Panic with gradient and font "console" #75

ropery opened this issue Feb 14, 2024 · 1 comment

Comments

@ropery
Copy link

ropery commented Feb 14, 2024

To reproduce:

$ cfonts "$(seq 200)" -f console -g red,magenta
thread 'main' panicked at src/gradient.rs:443:32:
range end index 3 out of range for slice of length 2
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

This bug depends on the width of the terminal and the length of the text.
If you can't reproduce the panic, try it in a narrower window or increase the seq argument.

@dominikwilkowski
Copy link
Owner

Thank you for reporting this.
Fixed now in v1.1.3rust and live in cargo and will be pushed down the other pipelines (like brew, AUR etc) later today

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

No branches or pull requests

2 participants