Assume at least 7.3.442

That version addded `:doau <nomodeline>`. Soon this plugin will be Vim 8+ only
anyway.

Fixes https://github.com/mhinz/vim-signify/issues/301
This commit is contained in:
Marco Hinz 2019-08-08 17:10:18 +02:00
parent 801856453c
commit ee299579c7
No known key found for this signature in database
GPG Key ID: 1C980A1B657B4A4F
3 changed files with 2 additions and 6 deletions

View File

@ -2,9 +2,6 @@
scriptencoding utf-8
" Init: values {{{1
let s:has_doau_modeline = v:version > 703 || v:version == 703 && has('patch442')
" Function: #start {{{1
function! sy#start() abort
if g:signify_locked

View File

@ -257,7 +257,7 @@ function! sy#sign#set_signs(sy, vcs, diff) abort
call sy#sign#process_diff(a:sy, a:vcs, a:diff)
if exists('#User#Signify')
execute 'doautocmd' (s:has_doau_modeline ? '<nomodeline>' : '') 'User Signify'
doautocmd <nomodeline> User Signify
endif
endfunction

View File

@ -9,7 +9,6 @@ endif
" Init: values {{{1
let g:loaded_signify = 1
let g:signify_locked = 0
let s:has_doau_modeline = v:version > 703 || v:version == 703 && has('patch442')
" Init: autocmds {{{1
augroup signify
@ -117,5 +116,5 @@ function! s:save()
endfunction
if exists('#User#SignifySetup')
execute 'doautocmd' (s:has_doau_modeline ? '<nomodeline>' : '') 'User SignifySetup'
doautocmd <nomodeline> User SignifySetup
endif