aboutsummaryrefslogtreecommitdiff
path: root/vim/autoload/patch.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/autoload/patch.vim')
-rw-r--r--vim/autoload/patch.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/vim/autoload/patch.vim b/vim/autoload/patch.vim
index 54637e09..dc2bef2b 100644
--- a/vim/autoload/patch.vim
+++ b/vim/autoload/patch.vim
@@ -4,15 +4,15 @@
" * <https://github.com/vim/vim/releases/tag/v7.4.236>
" * <https://github.com/vim/vim/releases/tag/v7.4.237>
"
-function! patch#(feature) abort
+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:feature)
+ return has(a:version)
endif
" Otherwise, we need to start splitting and comparing numbers
- let [major, minor, patch] = split(a:feature, '\.')
+ let [major, minor, patch] = split(a:version, '\.')
" The v:version variable looks like e.g. 801 for v8.1
let l:version = major * 100 + minor