diff options
Diffstat (limited to 'runtime/indent/readline.vim')
-rw-r--r-- | runtime/indent/readline.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/indent/readline.vim b/runtime/indent/readline.vim index a58cc411b..e202ddfd8 100644 --- a/runtime/indent/readline.vim +++ b/runtime/indent/readline.vim @@ -25,11 +25,11 @@ function GetReadlineIndent() let ind = indent(lnum) if getline(lnum) =~ '^\s*$\(if\|else\)\>' - let ind = ind + &sw + let ind = ind + shiftwidth() endif if getline(v:lnum) =~ '^\s*$\(else\|endif\)\>' - let ind = ind - &sw + let ind = ind - shiftwidth() endif return ind |