From def16e48a4775881ce438aea68badd227f6e4fbf Mon Sep 17 00:00:00 2001 From: mattn Date: Tue, 2 Jul 2013 13:04:38 +0900 Subject: [PATCH] Fixes color values for windows console --- plugin/airline.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/airline.vim b/plugin/airline.vim index bc11ef9..eb94a54 100644 --- a/plugin/airline.vim +++ b/plugin/airline.vim @@ -61,6 +61,9 @@ function! s:highlight(mode, keys) for key in a:keys if exists('s:airline_colors_{l:mode}') && exists('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', \ s:airline_highlight_map[key], \ colors[0] != '' ? 'guifg='.colors[0] : '',