aboutsummaryrefslogtreecommitdiff
path: root/vim/autoload/indent.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-10-03 20:44:40 +1300
committerTom Ryder <tom@sanctum.geek.nz>2020-10-03 20:44:40 +1300
commit6d28b9fca6aa5aa16c35615ed48b0b61572ee975 (patch)
tree8d8f1d280aab82ffbd8e8d6641f8889fe0fcae29 /vim/autoload/indent.vim
parentUpdate put_date.vim to v0.2.0 (diff)
downloaddotfiles-6d28b9fca6aa5aa16c35615ed48b0b61572ee975.tar.gz
dotfiles-6d28b9fca6aa5aa16c35615ed48b0b61572ee975.zip
Refactor patch testing into new patch#() wrapper
This is a little more efficient, and perhaps a bit clearer, too.
Diffstat (limited to 'vim/autoload/indent.vim')
-rw-r--r--vim/autoload/indent.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/autoload/indent.vim b/vim/autoload/indent.vim
index d597653f..5f62fb0b 100644
--- a/vim/autoload/indent.vim
+++ b/vim/autoload/indent.vim
@@ -10,7 +10,7 @@ function! indent#Spaces(...) abort
" If we have the patch that supports it, set 'softtabstop' to dynamically
" mirror the value of 'shiftwidth'; failing that, just copy it
- let &l:softtabstop = has#('patch-7.3.693')
+ let &l:softtabstop = patch#('7.3.693')
\ ? -1
\ : &l:shiftwidth