mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-08-17 21:28:00 +08:00
fix parts being undefined when referenced by sections in vimrc (#207).
This commit is contained in:
@@ -7,7 +7,7 @@ let s:parts = {}
|
||||
|
||||
function! airline#parts#define(key, config)
|
||||
let s:parts[a:key] = get(s:parts, a:key, {})
|
||||
if exists('g:airline#init#initializing_sections')
|
||||
if exists('g:airline#init#bootstrapping')
|
||||
call extend(s:parts[a:key], a:config, 'keep')
|
||||
else
|
||||
call extend(s:parts[a:key], a:config, 'force')
|
||||
|
||||
Reference in New Issue
Block a user