Commit 8caedba
committed
fix(cli[_colors]): Handle fg/bg=0 in style() correctly
Change truthiness check from `if fg:` to `if fg or fg == 0:` to
handle color index 0 (black) correctly while still treating empty
values like () as "no color".1 parent 6f2cb49 commit 8caedba
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
722 | 722 | | |
723 | 723 | | |
724 | 724 | | |
725 | | - | |
| 725 | + | |
726 | 726 | | |
727 | 727 | | |
728 | 728 | | |
729 | 729 | | |
730 | 730 | | |
731 | | - | |
| 731 | + | |
732 | 732 | | |
733 | 733 | | |
734 | 734 | | |
| |||
0 commit comments