console-rs / indicatif

A command line progress reporting library for Rust
MIT License
4.36k stars 241 forks source link

using wide unicode characters in `progress_chars` results in a too wide bar being drawn #455

Closed whirm closed 2 years ago

whirm commented 2 years ago

I've just upgraded my project to 0.17.0 from 0.16.2 and I've noticed that a bar that's using

    template.progress_chars("🔐🔑🕓");

now draws incorrectly:

image

With 0.16.2 it worked just fine:

image

line on my Cargo.toml:

indicatif = { version = "0.17.0", features = ["improved_unicode", "tokio"] }

Thanks for this project!

djc commented 2 years ago

Oops, sorry about that! Looks like I made a typo while refactoring in https://github.com/console-rs/indicatif/commit/d7851c7a467313571d71133b1729af9c5dd3b2ae, fix submitted in #456.