From f98dba25f25fb28ed5df2301c91fe5fb4e181878 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Tue, 2 Jun 2015 09:18:05 +0200 Subject: [PATCH] :StartifyDebug should never fail --- autoload/startify.vim | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/autoload/startify.vim b/autoload/startify.vim index 908df53..6c969da 100644 --- a/autoload/startify.vim +++ b/autoload/startify.vim @@ -340,9 +340,11 @@ endfunction " Function: startify#debug {{{1 function! startify#debug() - for k in sort(keys(s:entries)) - echomsg '['. k .'] = '. string(s:entries[k]) - endfor + if exists('s:entries') + for k in sort(keys(s:entries)) + echomsg '['. k .'] = '. string(s:entries[k]) + endfor + endif endfunction " Function: #open_buffers {{{1