Fix error when tabline extension is loaded

The non-normal maps may be used by other extensions. In particular,
airline#extensions#tabline#load_theme() causes errors unless they
are set.

fixes #141
This commit is contained in:
Tim Smith 2018-06-06 13:45:53 -06:00 committed by Christian Brabandt
parent c593b00edc
commit f7f2818f1a
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
1 changed files with 3 additions and 0 deletions

View File

@ -56,6 +56,9 @@ function! airline#themes#{s:theme}#refresh()
let palette.normal.airline_warning = WI let palette.normal.airline_warning = WI
let palette.normal.airline_term = TE let palette.normal.airline_term = TE
let palette.insert = palette.normal
let palette.replace = palette.normal
let palette.visual = palette.normal
let palette.inactive = airline#themes#generate_color_map(IA, IA, IA) let palette.inactive = airline#themes#generate_color_map(IA, IA, IA)
if s:want_showmod if s:want_showmod