diff options
Diffstat (limited to 'ftdetect')
-rw-r--r-- | ftdetect/polyglot.vim | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index 385edb0c..72d938e8 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -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 |