Change status line foreground for high contrast.

For some reason, using ctermbg=7 causes the ^^^ symbols to appear in the
status line when the high contrast variant is active. That happens both
in terminal and in MacVim. Setting the foreground to 15 fixes the
problem (that is high contrast anyway).
This commit is contained in:
Lifepillar
2016-05-21 14:50:49 +02:00
parent f6ed9c6842
commit d920798d98
2 changed files with 6 additions and 2 deletions

View File

@@ -266,7 +266,11 @@ for s:solarized_background in ["dark", "light"]
call s:put(" hi! StatusLine" .s:fg_base02 .s:bg_base1 .s:fmt_revbb)
else
if s:solarized_background == "dark"
call s:put(" hi! StatusLine" .s:fg_base01 ." ctermbg=7 guibg=#eee8d5" .s:fmt_revbb)
if s:solarized_contrast == "high"
call s:put(" hi! StatusLine" .s:fg_base01 ." ctermbg=15 guibg=#fdf6e3" .s:fmt_revbb)
else
call s:put(" hi! StatusLine" .s:fg_base01 ." ctermbg=7 guibg=#eee8d5" .s:fmt_revbb)
endif
else
call s:put(" hi! StatusLine" .s:fg_base01 ." ctermbg=15 guibg=#fdf6e3" .s:fmt_revbb)
endif