summaryrefslogtreecommitdiffstats
path: root/runtime/indent/css.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-05-18 21:49:28 +0200
committerBram Moolenaar <Bram@vim.org>2012-05-18 21:49:28 +0200
commit8e52a593765172de0f4d98a849d6d89d024b971e (patch)
tree835eaca57a3432e958820b1a994ffa410dd24572 /runtime/indent/css.vim
parentbd1d5608952dd1c61f99f9b2f605610405415622 (diff)
Fix more 'cpo' issues in runtime files.
Diffstat (limited to 'runtime/indent/css.vim')
-rw-r--r--runtime/indent/css.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/indent/css.vim b/runtime/indent/css.vim
index 2a09566e1a..f85bb05acb 100644
--- a/runtime/indent/css.vim
+++ b/runtime/indent/css.vim
@@ -15,6 +15,8 @@ setlocal nosmartindent
if exists("*GetCSSIndent")
finish
endif
+let s:keepcpo= &cpo
+set cpo&vim
function s:prevnonblanknoncomment(lnum)
let lnum = a:lnum
@@ -74,3 +76,6 @@ function GetCSSIndent()
return indent(pnum) + s:count_braces(pnum, 1) * &sw
\ - s:count_braces(v:lnum, 0) * &sw
endfunction
+
+let &cpo = s:keepcpo
+unlet s:keepcpo