diff options
| author | Vadim Chugunov <vadimcn@gmail.com> | 2014-10-25 17:37:41 -0700 |
|---|---|---|
| committer | Vadim Chugunov <vadimcn@gmail.com> | 2014-10-25 17:37:41 -0700 |
| commit | f29535d2356fe138239f01899fc47555f3b7cf0f (patch) | |
| tree | effa840861c187660810cbeb0b16b1abbcca0e90 | |
| parent | 2130f2221600f03129df95f3611444468806b237 (diff) | |
| download | rust-f29535d2356fe138239f01899fc47555f3b7cf0f.tar.gz rust-f29535d2356fe138239f01899fc47555f3b7cf0f.zip | |
Fix bug #17982.
| -rw-r--r-- | src/libterm/win.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libterm/win.rs b/src/libterm/win.rs index 0aae85503d0..d4f06403c1a 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, |
