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