diff options
author | Eric Engestrom <eric.engestrom@imgtec.com> | 2017-10-31 16:11:15 +0000 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-11-06 20:57:14 +0200 |
commit | 91f2a309c6ada44c251c455896fe01dd3f4cc3d5 (patch) | |
tree | 23375e2dd9e63ea939e3ef2f6fac609786a2572b /syntax-highlighting/vim | |
parent | 671508759821f56a5bc1b4c2d7bb2f71e9d36033 (diff) | |
download | meson-91f2a309c6ada44c251c455896fe01dd3f4cc3d5.zip meson-91f2a309c6ada44c251c455896fe01dd3f4cc3d5.tar.gz meson-91f2a309c6ada44c251c455896fe01dd3f4cc3d5.tar.bz2 |
vim: remove double indent
There is no reason to indent twice inside blocks.
Diffstat (limited to 'syntax-highlighting/vim')
-rw-r--r-- | syntax-highlighting/vim/indent/meson.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/syntax-highlighting/vim/indent/meson.vim b/syntax-highlighting/vim/indent/meson.vim index b00c942..8553ec0 100644 --- a/syntax-highlighting/vim/indent/meson.vim +++ b/syntax-highlighting/vim/indent/meson.vim @@ -78,7 +78,7 @@ function GetMesonIndent(lnum) " When inside parenthesis: If at the first line below the parenthesis add - " two 'shiftwidth', otherwise same as previous line. + " a 'shiftwidth', otherwise same as previous line. " i = (a " + b " + c) @@ -97,7 +97,7 @@ function GetMesonIndent(lnum) if pp > 0 return indent(plnum) + (exists("g:pyindent_nested_paren") ? eval(g:pyindent_nested_paren) : shiftwidth()) endif - return indent(plnum) + (exists("g:pyindent_open_paren") ? eval(g:pyindent_open_paren) : (shiftwidth() * 2)) + return indent(plnum) + (exists("g:pyindent_open_paren") ? eval(g:pyindent_open_paren) : shiftwidth()) endif if plnumstart == p return indent(plnum) |