From f29535d2356fe138239f01899fc47555f3b7cf0f Mon Sep 17 00:00:00 2001 From: Vadim Chugunov <vadimcn@gmail.com> Date: Sat, 25 Oct 2014 17:37:41 -0700 Subject: [PATCH] Fix bug #17982. --- src/libterm/win.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libterm/win.rs b/src/libterm/win.rs index 0aae85503d07d..d4f06403c1a6e 100644 --- a/src/libterm/win.rs +++ b/src/libterm/win.rs @@ -71,7 +71,8 @@ fn color_to_bits(color: color::Color) -> u16 { } fn bits_to_color(bits: u16) -> color::Color { - let color = match bits & 0x7 { + let bits = bits & 0x7; + let color = match bits { 0 => color::BLACK, 0x1 => color::BLUE, 0x2 => color::GREEN,