From f0671157197c3c9d9d859574dc7a172b7f2aa93d Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 6 Oct 2020 11:20:12 +1300 Subject: Change parameter name for patch#() function --- vim/autoload/patch.vim | 6 +++--- 1 file 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 @@ " * " * " -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 -- cgit v1.2.3 From cffe860b6d7c1513dacee05992cf973d7fe7e76e Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 6 Oct 2020 11:20:29 +1300 Subject: Correct patch#() relay to has() to add prefix --- vim/autoload/patch.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3 From 395c3a768d83771cb2806bf0c79474618125a705 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 6 Oct 2020 11:20:41 +1300 Subject: Tweak comment --- vim/autoload/patch.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vim/autoload/patch.vim b/vim/autoload/patch.vim index cbfa8c93..614be462 100644 --- a/vim/autoload/patch.vim +++ b/vim/autoload/patch.vim @@ -6,7 +6,7 @@ " 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('patch-'.a:version) endif -- cgit v1.2.3 From f5076b81a58023f19ba1d1863cb5b866906646df Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 6 Oct 2020 11:20:45 +1300 Subject: Bump VERSION --- VERSION | 4 ++-- 1 file changed, 2 insertions(+), 2 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 -- cgit v1.2.3