aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-10-06 11:20:49 +1300
committerTom Ryder <tom@sanctum.geek.nz>2020-10-06 11:20:49 +1300
commitd75f78806188f063b30acb6a4b818b94c82ede73 (patch)
tree118d67be434d62ff6286b6f0bcc4ae640447d6d1
parentMerge branch 'release/v10.11.0' (diff)
parentBump VERSION (diff)
downloaddotfiles-10.12.0.tar.gz (sig)
dotfiles-10.12.0.zip
Merge branch 'release/v10.12.0'v10.12.0
* release/v10.12.0: Tweak comment Correct patch#() relay to has() to add prefix Change parameter name for patch#() function
-rw-r--r--VERSION4
-rw-r--r--vim/autoload/patch.vim8
2 files changed, 6 insertions, 6 deletions
diff --git a/VERSION b/VERSION
index f452186b..296736b7 100644
--- a/VERSION
+++ b/VERSION
@@ -1,2 +1,2 @@
-tejr dotfiles v10.11.0
-Mon, 05 Oct 2020 10:30:47 +0000
+tejr dotfiles v10.12.0
+Mon, 05 Oct 2020 22:20:45 +0000
diff --git a/vim/autoload/patch.vim b/vim/autoload/patch.vim
index 54637e09..614be462 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 we're new enough, we can just use the native has()
if has('patch-7.4.237')
- return has(a:feature)
+ return has('patch-'.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