fix undefined cpo_save (#623)

This commit is contained in:
Fabien RAJAONARISON
2020-11-02 19:46:24 +01:00
committed by GitHub
parent ff35c02445
commit cd76812402

View File

@@ -120,9 +120,11 @@ endfunc
augroup polyglot-observer | augroup END
" Restore 'cpoptions'
let &cpo = s:cpo_save
unlet s:cpo_save
if exists('s:cpo_save')
" Restore 'cpoptions'
let &cpo = s:cpo_save
unlet s:cpo_save
endif
" Load user-defined filetype.vim and oter plugins ftdetect first
" This is to use polyglot-defined ftdetect always as fallback to user settings