diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-03-16 17:41:02 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-03-16 17:41:02 +0100 |
commit | 036986f1507d223549d110af300144468bd3a1f7 (patch) | |
tree | 4ceb878909e769f23d6deeae3bbb03d16e974f0d /runtime/indent/ld.vim | |
parent | 8820b48654b62472821d9b155fe03ab7ac13a05c (diff) |
Update runtime files.
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 6544c4d511..a72a3a9548 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 |