From cd768124020d3c565f1d400ea0537949351b26a2 Mon Sep 17 00:00:00 2001 From: Fabien RAJAONARISON Date: Mon, 2 Nov 2020 19:46:24 +0100 Subject: fix undefined cpo_save (#623) --- ftdetect/polyglot.vim | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'ftdetect') 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 -- cgit v1.2.3