diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-11-07 02:49:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-07 02:49:08 +0100 |
commit | ad527392abb60e19954d5e8dba05af282d67d15b (patch) | |
tree | 5a8ad20c8cc49b37593e8f1089420446b731b0d0 /runtime/indent/awk.vim | |
parent | dc9290109481e5e0d0c224fecb217ceb5a4c978d (diff) | |
parent | 20e317e22abeef20891eb70a18435559f7b09212 (diff) | |
download | rneovim-ad527392abb60e19954d5e8dba05af282d67d15b.tar.gz rneovim-ad527392abb60e19954d5e8dba05af282d67d15b.tar.bz2 rneovim-ad527392abb60e19954d5e8dba05af282d67d15b.zip |
Merge #7499 'vim-patch: runtime'
Diffstat (limited to 'runtime/indent/awk.vim')
-rw-r--r-- | runtime/indent/awk.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/indent/awk.vim b/runtime/indent/awk.vim index 6f6b70cc4e..aad73ee71f 100644 --- a/runtime/indent/awk.vim +++ b/runtime/indent/awk.vim @@ -60,7 +60,7 @@ function! GetAwkIndent() " 'pattern { action }' (simple check match on /{/ increases the indent then) if s:Get_brace_balance( prev_data, '{', '}' ) > 0 - return ind + &sw + return ind + shiftwidth() endif let brace_balance = s:Get_brace_balance( prev_data, '(', ')' ) @@ -99,7 +99,7 @@ function! GetAwkIndent() return s:Safe_indent( ind, s:First_word_len(prev_data), getline(v:lnum)) else " if/for/while without '{' - return ind + &sw + return ind + shiftwidth() endif endif endif @@ -140,7 +140,7 @@ function! GetAwkIndent() " Decrease indent if this line contains a '}'. if getline(v:lnum) =~ '^\s*}' - let ind = ind - &sw + let ind = ind - shiftwidth() endif return ind |