mirror of
https://github.com/ViViDboarder/force-vim.git
synced 2024-11-21 19:56:33 +00:00
Prevent double adding of Airline Function
This commit is contained in:
parent
63b5992249
commit
26bdde9d34
@ -6,6 +6,10 @@ end
|
|||||||
if !exists("g:force_disable_airline")
|
if !exists("g:force_disable_airline")
|
||||||
let g:force_disable_airline = 0
|
let g:force_disable_airline = 0
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if !exists("g:force_status_line_func_added")
|
||||||
|
let g:force_status_line_func_added = 0
|
||||||
|
end
|
||||||
" Config Variables }
|
" Config Variables }
|
||||||
|
|
||||||
" Main Functions {
|
" Main Functions {
|
||||||
@ -156,8 +160,9 @@ function! ForceCli#AirlineFunction(...)
|
|||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
if g:force_disable_airline != 1 && g:loaded_airline == 1
|
if g:force_disable_airline != 1 && g:loaded_airline == 1 && g:force_status_line_func_added != 1
|
||||||
call airline#add_statusline_func('ForceCli#AirlineFunction')
|
call airline#add_statusline_func('ForceCli#AirlineFunction')
|
||||||
|
let g:force_status_line_func_added = 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Plugin Functions }
|
" Plugin Functions }
|
||||||
|
Loading…
Reference in New Issue
Block a user