Refactoring: g:startify_custom_header

This commit is contained in:
Marco Hinz 2018-01-14 17:30:26 +01:00
parent d66c31f02e
commit fbcba230e9
No known key found for this signature in database
GPG key ID: 1C980A1B657B4A4F
3 changed files with 32 additions and 29 deletions

View file

@ -75,8 +75,11 @@ function! startify#insane_in_the_membrane() abort
if exists('g:startify_custom_header')
if type(g:startify_custom_header) == type([])
let g:startify_header = copy(g:startify_custom_header)
else
elseif type(g:startify_custom_header) == type('')
let g:startify_header = eval(g:startify_custom_header)
else
echomsg 'startify: wrong type of value for g:startify_custom_header'
let g:startify_header = startify#fortune#cowsay()
endif
else
let g:startify_header = startify#fortune#cowsay()