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.
This commit is contained in:
Marco Hinz 2017-02-20 15:03:34 +01:00
parent 7a639b0263
commit 61d5a48c71
No known key found for this signature in database
GPG Key ID: 1C980A1B657B4A4F

View File

@ -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