diff options
Diffstat (limited to 'runtime/indent/ld.vim')
-rw-r--r-- | runtime/indent/ld.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/indent/ld.vim b/runtime/indent/ld.vim index 6544c4d51..a72a3a954 100644 --- a/runtime/indent/ld.vim +++ b/runtime/indent/ld.vim @@ -65,7 +65,7 @@ function GetLDIndent() if line =~ '^\s*\*' return cindent(v:lnum) elseif line =~ '^\s*}' - return indent(v:lnum) - &sw + return indent(v:lnum) - shiftwidth() endif let pnum = s:prevnonblanknoncomment(v:lnum - 1) @@ -73,11 +73,11 @@ function GetLDIndent() return 0 endif - let ind = indent(pnum) + s:count_braces(pnum, 1) * &sw + let ind = indent(pnum) + s:count_braces(pnum, 1) * shiftwidth() let pline = getline(pnum) if pline =~ '}\s*$' - let ind -= (s:count_braces(pnum, 0) - (pline =~ '^\s*}' ? 1 : 0)) * &sw + let ind -= (s:count_braces(pnum, 0) - (pline =~ '^\s*}' ? 1 : 0)) * shiftwidth() endif return ind |