From cbcf3f25188e65c056378cd95d058781e2d90b84 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Thu, 21 Jul 2016 17:03:55 +0200 Subject: [PATCH] Only emit User event if there is a receiving end --- autoload/startify.vim | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/autoload/startify.vim b/autoload/startify.vim index 5f7287f..6e6d660 100644 --- a/autoload/startify.vim +++ b/autoload/startify.vim @@ -155,7 +155,13 @@ function! startify#insane_in_the_membrane() abort silent file Startify set filetype=startify - silent! doautocmd User Startified + if exists('#User#Startified') + if v:version > 703 || v:version == 703 && has('patch442') + doautocmd User Startified + else + doautocmd User Startified + endif + endif endfunction " Function: #session_load {{{1