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(-) (limited to 'vim') 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