Refactoring: g:startify_custom_header
This commit is contained in:
parent
d66c31f02e
commit
fbcba230e9
3 changed files with 32 additions and 29 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue