plugin: save/restore cpo setting
This has been missing way too long. It should always be set to a sane vim default, as documented (:h write-plugin). So add it as well.
This commit is contained in:
parent
5f9ae83f44
commit
9f00b402c5
|
@ -1,6 +1,9 @@
|
||||||
" MIT License. Copyright (c) 2013-2019 Bailey Ling, Christian Brabandt et al.
|
" MIT License. Copyright (c) 2013-2019 Bailey Ling, Christian Brabandt et al.
|
||||||
" vim: et ts=2 sts=2 sw=2
|
" vim: et ts=2 sts=2 sw=2
|
||||||
|
|
||||||
|
let s:save_cpo = &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
scriptencoding utf-8
|
scriptencoding utf-8
|
||||||
|
|
||||||
if &cp || v:version < 702 || (exists('g:loaded_airline') && g:loaded_airline)
|
if &cp || v:version < 702 || (exists('g:loaded_airline') && g:loaded_airline)
|
||||||
|
@ -292,3 +295,6 @@ command! AirlineExtensions call s:airline_extensions()
|
||||||
|
|
||||||
call airline#init#bootstrap()
|
call airline#init#bootstrap()
|
||||||
call s:airline_toggle()
|
call s:airline_toggle()
|
||||||
|
|
||||||
|
let &cpo = s:save_cpo
|
||||||
|
unlet s:save_cpo
|
||||||
|
|
Loading…
Reference in New Issue