Sfoglia il codice sorgente

Don't add blank line for empty custom header

Closes #210.
Marco Hinz 9 anni fa
parent
commit
570ef9e11f
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      autoload/startify.vim

+ 3 - 1
autoload/startify.vim

@@ -88,7 +88,9 @@ function! startify#insane_in_the_membrane() abort
   else
     let g:startify_header = startify#fortune#cowsay()
   endif
-  let g:startify_header += ['']  " add blank line
+  if !empty(g:startify_header)
+    let g:startify_header += ['']  " add blank line
+  endif
   call append('$', g:startify_header)
 
   let s:tick = 0