We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2130f22 commit f29535dCopy full SHA for f29535d
src/libterm/win.rs
@@ -71,7 +71,8 @@ fn color_to_bits(color: color::Color) -> u16 {
71
}
72
73
fn bits_to_color(bits: u16) -> color::Color {
74
- let color = match bits & 0x7 {
+ let bits = bits & 0x7;
75
+ let color = match bits {
76
0 => color::BLACK,
77
0x1 => color::BLUE,
78
0x2 => color::GREEN,
0 commit comments