Просмотр исходного кода

Skip default header for very old versions

Closes https://github.com/mhinz/vim-startify/issues/386
Marco Hinz 6 лет назад
Родитель
Сommit
d7849587e5
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      autoload/startify.vim

+ 1 - 1
autoload/startify.vim

@@ -64,7 +64,7 @@ function! startify#insane_in_the_membrane(on_vimenter) abort
   " Must be global so that it can be read by syntax/startify.vim.
   " Must be global so that it can be read by syntax/startify.vim.
   let g:startify_header = exists('g:startify_custom_header')
   let g:startify_header = exists('g:startify_custom_header')
         \ ? s:set_custom_section(g:startify_custom_header)
         \ ? s:set_custom_section(g:startify_custom_header)
-        \ : startify#fortune#cowsay()
+        \ : (exists('*strwidth') ? startify#fortune#cowsay() : [])
   if !empty(g:startify_header)
   if !empty(g:startify_header)
     let g:startify_header += ['']  " add blank line
     let g:startify_header += ['']  " add blank line
   endif
   endif