fix error when using simple theme

This commit is contained in:
Bailey Ling 2013-08-18 04:22:36 +00:00
parent a8692a7b97
commit b4d7531c05

View File

@ -57,6 +57,7 @@ function! airline#themes#patch(palette)
let overrides = split(mode, '_')
if len(overrides) > 1
let mode_colors = a:palette[overrides[0]]
if exists('mode_colors.airline_file')
let file_colors = mode_colors.airline_file
let file_colors[1] = mode_colors.airline_c[1]
let file_colors[3] = mode_colors.airline_c[3]
@ -67,6 +68,7 @@ function! airline#themes#patch(palette)
let override_colors.airline_file[1] = override_status_colors[1]
let override_colors.airline_file[3] = override_status_colors[3]
endif
endif
endfor
endfunction