diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2017-11-06 05:05:54 +0100 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2017-11-06 05:26:16 +0100 |
| commit | 93fb7383a330f03bf64ed5558a8e16ea4c742478 (patch) | |
| tree | 596412501c48ef25aa15b1c3d1903c5568e7f2ab /runtime/indent/css.vim | |
| parent | 8f03014e8861df7f49bf4e1dbdfcc20e1611ce35 (diff) | |
| download | rneovim-93fb7383a330f03bf64ed5558a8e16ea4c742478.tar.gz rneovim-93fb7383a330f03bf64ed5558a8e16ea4c742478.tar.bz2 rneovim-93fb7383a330f03bf64ed5558a8e16ea4c742478.zip | |
vim-patch:214641f77df6
Runtime file updates.
https://github.com/vim/vim/commit/214641f77df6f318a4b3a0b09723c19859a103f4
N/A:
vim-patch:26a280c47a1c
Diffstat (limited to 'runtime/indent/css.vim')
| -rw-r--r-- | runtime/indent/css.vim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/indent/css.vim b/runtime/indent/css.vim index f0a272eff9..4d15b8d2dc 100644 --- a/runtime/indent/css.vim +++ b/runtime/indent/css.vim @@ -2,6 +2,7 @@ " Language: CSS " Maintainer: Nikolai Weibull <now@bitwi.se> " Latest Revision: 2012-05-30 +" Use of shiftwidth() added by Oleg Zubchenko. if exists("b:did_indent") finish @@ -75,8 +76,8 @@ function GetCSSIndent() return 0 endif - return indent(pnum) + s:count_braces(pnum, 1) * &sw - \ - s:count_braces(v:lnum, 0) * &sw + return indent(pnum) + s:count_braces(pnum, 1) * shiftwidth() + \ - s:count_braces(v:lnum, 0) * shiftwidth() endfunction let &cpo = s:keepcpo |