Lokaltog/vim-powerline — pull request #74 by mattn (2012-02-01 06:30:32+00:00)
Title: fix windows console. avoid to set background value over 128.

When using vim-powerline on windows command prompt, I see broken displays like following.

![](http://go-gyazo.appspot.com/91d425d6c717823f.png)

vim-powerline set ctermbg value over 128. This should be lesser than 128 (<= 128).

http://msdn.microsoft.com/en-us/library/windows/desktop/ms682088(v=vs.85).aspx#_win32_character_attributes

```
FOREGROUND_BLUE 1
FOREGROUND_GREEN 2
FOREGROUND_RED 4
FOREGROUND_INTENSITY 8
BACKGROUND_BLUE 16
BACKGROUND_GREEN 32
BACKGROUND_RED 64
BACKGROUND_INTENSITY 128
```

To be exact, it should use `xor` and `invert` bitwize function. But bitwize functions are too newer. Many users don't use version 7.3.4xx.
So I fixed simply. Please check and inculde.

Below is a screen capture which applied this patch.

![](http://go-gyazo.appspot.com/410a5f7abb497189.png)