aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-10-06 11:20:12 +1300
committerTom Ryder <tom@sanctum.geek.nz>2020-10-06 11:20:12 +1300
commitf0671157197c3c9d9d859574dc7a172b7f2aa93d (patch)
tree6d7fee30023e2aa1550324befe4be746cf06595c
parentMerge branch 'release/v10.11.0' into develop (diff)
downloaddotfiles-f0671157197c3c9d9d859574dc7a172b7f2aa93d.tar.gz
dotfiles-f0671157197c3c9d9d859574dc7a172b7f2aa93d.zip
Change parameter name for patch#() function
-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