Merge pull request #5 from mattn/win32console

Win32console
This commit is contained in:
Bailey Ling 2013-07-01 21:26:42 -07:00
commit 30702a9ba2

View File

@ -1,3 +1,7 @@
if &cp || v:version < 702 || (exists('g:loaded_airline') && g:loaded_airline)
finish
endif
let g:loaded_airline = 1
if !exists('g:airline_left_sep') if !exists('g:airline_left_sep')
let g:airline_left_sep = exists('g:airline_powerline_fonts')?"":">" let g:airline_left_sep = exists('g:airline_powerline_fonts')?"":">"
endif endif
@ -61,6 +65,9 @@ function! s:highlight(mode, keys)
for key in a:keys for key in a:keys
if exists('s:airline_colors_{l:mode}') && exists('s:airline_colors_{l:mode}[key]') if exists('s:airline_colors_{l:mode}') && exists('s:airline_colors_{l:mode}[key]')
let colors = s:airline_colors_{l:mode}[key] let colors = s:airline_colors_{l:mode}[key]
if (has('win32') || has('win64')) && !has('gui_running')
let colors = map(colors, 'v:val != "" && v:val > 128 ? v:val - 128 : v:val')
endif
let cmd = printf('hi %s %s %s %s %s %s %s', let cmd = printf('hi %s %s %s %s %s %s %s',
\ s:airline_highlight_map[key], \ s:airline_highlight_map[key],
\ colors[0] != '' ? 'guifg='.colors[0] : '', \ colors[0] != '' ? 'guifg='.colors[0] : '',