Only emit User event if there is a receiving end
This commit is contained in:
parent
6751427eb1
commit
cbcf3f2518
|
@ -155,7 +155,13 @@ function! startify#insane_in_the_membrane() abort
|
||||||
|
|
||||||
silent file Startify
|
silent file Startify
|
||||||
set filetype=startify
|
set filetype=startify
|
||||||
silent! doautocmd <nomodeline> User Startified
|
if exists('#User#Startified')
|
||||||
|
if v:version > 703 || v:version == 703 && has('patch442')
|
||||||
|
doautocmd <nomodeline> User Startified
|
||||||
|
else
|
||||||
|
doautocmd User Startified
|
||||||
|
endif
|
||||||
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" Function: #session_load {{{1
|
" Function: #session_load {{{1
|
||||||
|
|
Loading…
Reference in a new issue