aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-10-06 11:20:29 +1300
committerTom Ryder <tom@sanctum.geek.nz>2020-10-06 11:20:29 +1300
commitcffe860b6d7c1513dacee05992cf973d7fe7e76e (patch)
tree76c95912e660de47ae4f7cd2889a9a74b9fa4386 /vim
parentChange parameter name for patch#() function (diff)
downloaddotfiles-cffe860b6d7c1513dacee05992cf973d7fe7e76e.tar.gz
dotfiles-cffe860b6d7c1513dacee05992cf973d7fe7e76e.zip
Correct patch#() relay to has() to add prefix
Diffstat (limited to 'vim')
-rw-r--r--vim/autoload/patch.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/autoload/patch.vim b/vim/autoload/patch.vim
index dc2bef2b..cbfa8c93 100644
--- a/vim/autoload/patch.vim
+++ b/vim/autoload/patch.vim
@@ -8,7 +8,7 @@ function! patch#(version) abort
" If we're new enough, we can just run the native has()
if has('patch-7.4.237')
- return has(a:version)
+ return has('patch-'.a:version)
endif
" Otherwise, we need to start splitting and comparing numbers