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:
parent
801856453c
commit
ee299579c7
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user