Skip to content

Commit d96f11b

Browse files
committed
Rename cpo_save variable to prevent conflicts, fixes #619
1 parent 0738ad6 commit d96f11b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ftdetect/polyglot.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ endif
1111
let did_load_polyglot = 1
1212

1313
" Switch to compatible mode for the time being
14-
let s:cpo_save = &cpo
14+
let s:polyglot_cpo_save = &cpo
1515
set cpo&vim
1616

1717
" 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')
35553555
endif
35563556

35573557
" Restore 'cpoptions'
3558-
let &cpo = s:cpo_save
3559-
unlet s:cpo_save
3558+
let &cpo = s:polyglot_cpo_save
3559+
unlet s:polyglot_cpo_save

0 commit comments

Comments
 (0)