aboutsummaryrefslogtreecommitdiff
path: root/vim/indent
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-07 15:27:50 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-07 15:27:50 +1200
commit65bda616c2045d2c6f86e52ed053eb9eea208071 (patch)
treee5f1fa502d890fb4975f2d11e7b6a79b6ab5ce4f /vim/indent
parent57bd8dcb1a77f7ca59b1e41a6bef175fbe90fc0a (diff)
downloaddotfiles-65bda616c2045d2c6f86e52ed053eb9eea208071.tar.gz
dotfiles-65bda616c2045d2c6f86e52ed053eb9eea208071.zip
Inline ternary condition in Perl Vim indent
Diffstat (limited to 'vim/indent')
-rw-r--r--vim/indent/perl.vim4
1 files changed, 1 insertions, 3 deletions
diff --git a/vim/indent/perl.vim b/vim/indent/perl.vim
index f4304fd2..43d64f6f 100644
--- a/vim/indent/perl.vim
+++ b/vim/indent/perl.vim
@@ -83,9 +83,7 @@ function! GetPerlIndent(lnum)
let l:pi = indent(l:pn)
" Get value of 'shiftwidth'
- let l:sw = &shiftwidth
- \ ? &shiftwidth
- \ : &tabstop
+ let l:sw = &shiftwidth ? &shiftwidth : &tabstop
" Get current line properties
let l:cl = getline(a:lnum)