Fixes for indentation and the possibility that the solarized variable won't be there

This commit is contained in:
Bryan Forbes
2014-05-30 10:25:12 -05:00
parent 35379507ae
commit d0a4b0bbd9
2 changed files with 46 additions and 44 deletions

View File

@@ -28,9 +28,10 @@ let s:cuicolors = {
" The following condition only applies for the console and is the same
" condition vim-colors-solarized uses to determine which set of colors
" to use.
if g:solarized_termcolors != 256 && &t_Co >= 16
let s:solarized_termcolors = get(g:, 'solarized_termcolors', 16)
if s:solarized_termcolors != 256 && &t_Co >= 16
let s:cuiindex = 0
elseif g:solarized_termcolors == 256
elseif s:solarized_termcolors == 256
let s:cuiindex = 1
else
let s:cuiindex = 2

View File

@@ -28,9 +28,10 @@ let s:cuicolors = {
" The following condition only applies for the console and is the same
" condition vim-colors-solarized uses to determine which set of colors
" to use.
if g:solarized_termcolors != 256 && &t_Co >= 16
let s:solarized_termcolors = get(g:, 'solarized_termcolors', 16)
if s:solarized_termcolors != 256 && &t_Co >= 16
let s:cuiindex = 0
elseif g:solarized_termcolors == 256
elseif s:solarized_termcolors == 256
let s:cuiindex = 1
else
let s:cuiindex = 2