Rename cpo_save variable to prevent conflicts, fixes #619

This commit is contained in:
Adam Stankiewicz
2020-11-02 18:21:43 +01:00
parent 0738ad654d
commit d96f11bcd8

View File

@@ -11,7 +11,7 @@ endif
let did_load_polyglot = 1
" Switch to compatible mode for the time being
let s:cpo_save = &cpo
let s:polyglot_cpo_save = &cpo
set cpo&vim
" It can happen vim filetype.vim loads first, then we need a reset
@@ -3555,5 +3555,5 @@ if !has_key(g:polyglot_is_disabled, 'sensible')
endif
" Restore 'cpoptions'
let &cpo = s:cpo_save
unlet s:cpo_save
let &cpo = s:polyglot_cpo_save
unlet s:polyglot_cpo_save