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/tcl.vim | |
parent | 8820b48654b62472821d9b155fe03ab7ac13a05c (diff) |
Update runtime files.
Diffstat (limited to 'runtime/indent/tcl.vim')
-rw-r--r-- | runtime/indent/tcl.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/indent/tcl.vim b/runtime/indent/tcl.vim index a92f57d67d..e9d61e4366 100644 --- a/runtime/indent/tcl.vim +++ b/runtime/indent/tcl.vim @@ -56,7 +56,7 @@ function GetTclIndent() 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) @@ -64,11 +64,11 @@ function GetTclIndent() 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 |