Browse Source

:StartifyDebug should never fail

Marco Hinz 10 năm trước cách đây
mục cha
commit
f98dba25f2
1 tập tin đã thay đổi với 5 bổ sung3 xóa
  1. 5 3
      autoload/startify.vim

+ 5 - 3
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