You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resolved: commit 6246d63 seems to have fixed this bug. EDIT: Nevermind that, the bug still persists.
EDIT 2: commit 805c0b8 should fix this issue.
EDIT 3: the bug still persits, but the reason this bug happens is now clear.
EDIT 4: The bug is gone! (e871ae8)
Description
macchina --bar shows an extra whitespace at the end of the battery bar before the closing bracket.
Reproducible
Yes
Reason
/// Return the correct amount of colored blocks: colored blocks are used blocks
pub fn colored_blocks(elems: &Elements, block_count: usize) -> ColoredString {
let colored_blocks = elems.format.bar_glyph.repeat(block_count);
colored_blocks
.chars()
.collect::<Vec<char>>()
.chunks(1)
.map(|c| c.iter().collect::<String>())
.collect::<Vec<String>>()
.join(" ")
.color(elems.format.color)
}
This function is meant to split up the amount of blocks into chunks, add a space between them, color and return them. but, whenever the block_count is equal to 10, it adds an extra space!
The text was updated successfully, but these errors were encountered:
Status
Resolved: commit 6246d63 seems to have fixed this bug.
EDIT: Nevermind that, the bug still persists.
EDIT 2: commit 805c0b8 should fix this issue.
EDIT 3: the bug still persits, but the reason this bug happens is now clear.
EDIT 4: The bug is gone! (e871ae8)
Description
macchina --bar
shows an extra whitespace at the end of the battery bar before the closing bracket.Reproducible
Yes
Reason
This function is meant to split up the amount of blocks into chunks, add a space between them, color and return them. but, whenever the
block_count
is equal to 10, it adds an extra space!The text was updated successfully, but these errors were encountered: