From 61d5a48c71b9eb34623df58feb8adfa4d101ded9 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Mon, 20 Feb 2017 15:03:34 +0100 Subject: [PATCH] Simplify has-patch condition The new format is supported since 7.4.237. If a Vim doesn't recognize the format, it's too old by definition. --- autoload/sy/repo.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/sy/repo.vim b/autoload/sy/repo.vim index b1bdaa1..0f4eb65 100644 --- a/autoload/sy/repo.vim +++ b/autoload/sy/repo.vim @@ -92,7 +92,7 @@ function! sy#repo#get_diff_start(vcs, do_register) abort endtry " Newer Vim - elseif v:version > 704 || v:version == 704 && has('patch1967') + elseif has('patch-7.4.1967') if type(job_id) != type(0) silent! call job_stop(job_id) endif