fix error when using simple theme
This commit is contained in:
parent
a8692a7b97
commit
b4d7531c05
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user