Compare commits
No commits in common. "0670e3796c685e99a8ad4aaea330709523ff5baa" and "05e1bd48e0588d71075e0f326a40564e764597c4" have entirely different histories.
0670e3796c
...
05e1bd48e0
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "pride"
|
name = "pride"
|
||||||
version = "0.4.2"
|
version = "0.4.1"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = [ "Valerie Wolfe <sleeplessval@gmail.com>" ]
|
authors = [ "Valerie Wolfe <sleeplessval@gmail.com>" ]
|
||||||
description = "Pride flags in the terminal."
|
description = "Pride flags in the terminal."
|
||||||
|
|
|
@ -118,7 +118,7 @@ impl Flag {
|
||||||
Flag::Stripes(colors)
|
Flag::Stripes(colors)
|
||||||
=> {
|
=> {
|
||||||
let count = colors.len() as u16;
|
let count = colors.len() as u16;
|
||||||
let (width, height) = state.size.get((count * 20 + 3) / 6, count);
|
let (width, height) = state.size.get(count * 3, count);
|
||||||
if height < count { error::too_small(width, height); }
|
if height < count { error::too_small(width, height); }
|
||||||
fg_stripes(colors, width, height)
|
fg_stripes(colors, width, height)
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue