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