Skip to content

Commit

Permalink
Merge pull request #40 from sergey-vlasov/master
Browse files Browse the repository at this point in the history
Foreground color fix for special characters
  • Loading branch information
nathanaelkane committed Jul 15, 2012
2 parents 6630674 + d9fe8b1 commit 5bc809d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions autoload/indent_guides.vim
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ function! indent_guides#basic_highlight_colors()
let l:cterm_colors = (&g:background == 'dark') ? ['darkgrey', 'black'] : ['lightgrey', 'white']
let l:gui_colors = (&g:background == 'dark') ? ['grey15', 'grey30'] : ['grey70', 'grey85']

exe 'hi IndentGuidesEven guibg=' . l:gui_colors[0] . ' ctermbg=' . l:cterm_colors[0]
exe 'hi IndentGuidesOdd guibg=' . l:gui_colors[1] . ' ctermbg=' . l:cterm_colors[1]
exe 'hi IndentGuidesEven guibg=' . l:gui_colors[0] . ' guifg=' . l:gui_colors[1] . ' ctermbg=' . l:cterm_colors[0] . ' ctermfg=' . l:cterm_colors[1]
exe 'hi IndentGuidesOdd guibg=' . l:gui_colors[1] . ' guifg=' . l:gui_colors[0] . ' ctermbg=' . l:cterm_colors[1] . ' ctermfg=' . l:cterm_colors[0]
endfunction

"
Expand Down Expand Up @@ -134,8 +134,8 @@ function! indent_guides#gui_highlight_colors()
let l:hi_even_bg = indent_guides#lighten_or_darken_color(l:hi_odd_bg)

" define the new highlights
exe 'hi IndentGuidesOdd guibg=' . l:hi_odd_bg
exe 'hi IndentGuidesEven guibg=' . l:hi_even_bg
exe 'hi IndentGuidesOdd guibg=' . l:hi_odd_bg . ' guifg=' . l:hi_even_bg
exe 'hi IndentGuidesEven guibg=' . l:hi_even_bg . ' guifg=' . l:hi_odd_bg
end
endfunction

Expand Down

0 comments on commit 5bc809d

Please sign in to comment.