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:
parent
7a639b0263
commit
61d5a48c71
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user