Skip to content

Commit f29535d

Browse files
committed
Fix bug #17982.
1 parent 2130f22 commit f29535d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libterm/win.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ fn color_to_bits(color: color::Color) -> u16 {
7171
}
7272

7373
fn bits_to_color(bits: u16) -> color::Color {
74-
let color = match bits & 0x7 {
74+
let bits = bits & 0x7;
75+
let color = match bits {
7576
0 => color::BLACK,
7677
0x1 => color::BLUE,
7778
0x2 => color::GREEN,

0 commit comments

Comments
 (0)