Nvim: make :Startify work from terminal buffer

Fixes #327
This commit is contained in:
Marco Hinz 2018-06-14 00:31:37 +02:00
parent fbd690fc85
commit 0b300f411f
No known key found for this signature in database
GPG key ID: 1C980A1B657B4A4F

View file

@ -44,7 +44,8 @@ endfunction
" Function: #insane_in_the_membrane {{{1
function! startify#insane_in_the_membrane() abort
" Handle vim -y, vim -M.
if &insertmode || (!&modifiable && &filetype != 'startify')
if &insertmode
\ || (!&modifiable && &buftype != 'terminal' && &filetype != 'startify')
return
endif